-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Thomas Poignant <[email protected]>
- Loading branch information
1 parent
e1b0443
commit 76a2954
Showing
2 changed files
with
70 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...in/java/dev/openfeature/contrib/providers/gofeatureflag/exception/InvalidTypeInCache.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package dev.openfeature.contrib.providers.gofeatureflag.exception; | ||
|
||
import lombok.experimental.StandardException; | ||
|
||
/** | ||
* InvalidTypeInCache is thrown when the type of the flag from the cache is not the one expected | ||
*/ | ||
public class InvalidTypeInCache extends GoFeatureFlagException { | ||
public InvalidTypeInCache(Class<?> expected, Class<?> got) { | ||
super("cache value is not from the expected type, we try a remote evaluation," + | ||
" expected: " + expected + ", got: " + got); | ||
} | ||
} |