Skip to content

Commit 36f5832

Browse files
thisthattoddbaert
andauthored
perf: improve error handling (open-feature#739)
* perf: improve error handling Signed-off-by: Giovanni Liva <[email protected]> * add synchronized keyword Signed-off-by: Giovanni Liva <[email protected]> --------- Signed-off-by: Giovanni Liva <[email protected]> Co-authored-by: Todd Baert <[email protected]>
1 parent 99bd988 commit 36f5832

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/dev/openfeature/sdk/exceptions/FlagNotFoundError.java

+5
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,9 @@
99
public class FlagNotFoundError extends OpenFeatureError {
1010
private static final long serialVersionUID = 1L;
1111
@Getter private final ErrorCode errorCode = ErrorCode.FLAG_NOT_FOUND;
12+
13+
@Override
14+
public synchronized Throwable fillInStackTrace() {
15+
return this;
16+
}
1217
}

0 commit comments

Comments
 (0)