Package anbxj
Class AnBx_LibraryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
anbxj.AnBx_LibraryException
- All Implemented Interfaces:
Serializable
Thrown when a fatal library error occurs that cannot be recovered from.
This exception is used throughout the AnBx library to indicate unrecoverable
conditions (e.g., keystore corruption, unable to open a server socket, etc.).
Because it is an unchecked RuntimeException, it does not need to be
declared in method signatures. In generated protocol code it will normally
cause the JVM to terminate (unless explicitly caught), which is the desired
behaviour for fatal errors.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAnBx_LibraryException(String message) Constructs a newAnBx_LibraryExceptionwith the specified detail message.AnBx_LibraryException(String message, Throwable cause) Constructs a newAnBx_LibraryExceptionwith the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AnBx_LibraryException
Constructs a newAnBx_LibraryExceptionwith the specified detail message.- Parameters:
message- the detail message, which is saved for later retrieval by theThrowable.getMessage()method.
-
AnBx_LibraryException
Constructs a newAnBx_LibraryExceptionwith the specified detail message and cause.- Parameters:
message- the detail message (which is saved for later retrieval byThrowable.getMessage()).cause- the cause (which is saved for later retrieval byThrowable.getCause()). Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.
-