Package ai.velr
Class VelrException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ai.velr.VelrException
- All Implemented Interfaces:
Serializable
Base unchecked exception raised by the Velr Java/Kotlin driver.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVelrException(String message) Create a Velr exception with a message.VelrException(String message, Throwable cause) Create a Velr exception with a message and cause. -
Method Summary
Modifier and TypeMethodDescriptionstatic VelrExceptionfromNative(String fallback) Convert the current native error into a Java exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
VelrException
Create a Velr exception with a message.- Parameters:
message- error message
-
VelrException
Create a Velr exception with a message and cause.- Parameters:
message- error messagecause- underlying cause
-
-
Method Details
-
fromNative
Convert the current native error into a Java exception.- Parameters:
fallback- fallback message used when the native layer has no error text- Returns:
- exception containing the native error text or fallback
-