-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace RuntimeException with FlagsmithRuntimeError (#130)
- Loading branch information
1 parent
b59359c
commit fc0ec75
Showing
4 changed files
with
32 additions
and
6 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
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
23 changes: 23 additions & 0 deletions
23
src/main/java/com/flagsmith/exceptions/FlagsmithRuntimeError.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,23 @@ | ||
package com.flagsmith.exceptions; | ||
|
||
/* | ||
* Custom RuntimeException for use in the Flagsmith client code. | ||
* | ||
* TODO: this only extends RuntimeException to maintain backwards compatibility | ||
* for any implementations that previously caught RuntimeException. We should | ||
* consider changing this in a future major release since it's unnecessary. | ||
*/ | ||
public class FlagsmithRuntimeError extends RuntimeException { | ||
|
||
public FlagsmithRuntimeError() { | ||
super(); | ||
} | ||
|
||
public FlagsmithRuntimeError(String message) { | ||
super(message); | ||
} | ||
|
||
public FlagsmithRuntimeError(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
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