Class BraveApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.ygbstudio.jbrave.core.exceptions.BraveApiException
- All Implemented Interfaces:
Serializable
BraveApiException exists to alert users about known errors that require user attention. In these
cases, JBrave does not handle such errors except for rate limits when handled for autocorrection.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBraveApiException(String message) Creates a new instance with the given detail message.BraveApiException(@NotNull Supplier<String> message) Creates a new instance with a lazily-evaluated detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BraveApiException
Creates a new instance with the given detail message.- Parameters:
message- the detail message
-
BraveApiException
Creates a new instance with a lazily-evaluated detail message.- Parameters:
message- a supplier for the detail message
-