Package anbxj

Class AnBx_LibraryException

All Implemented Interfaces:
Serializable

public class AnBx_LibraryException extends RuntimeException
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 Details

    • AnBx_LibraryException

      public AnBx_LibraryException(String message)
      Constructs a new AnBx_LibraryException with the specified detail message.
      Parameters:
      message - the detail message, which is saved for later retrieval by the Throwable.getMessage() method.
    • AnBx_LibraryException

      public AnBx_LibraryException(String message, Throwable cause)
      Constructs a new AnBx_LibraryException with the specified detail message and cause.
      Parameters:
      message - the detail message (which is saved for later retrieval by Throwable.getMessage()).
      cause - the cause (which is saved for later retrieval by Throwable.getCause()). A null value is permitted, and indicates that the cause is nonexistent or unknown.