Class SBException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.io7m.sunburst.error_codes.SBException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SBInventoryException, SBPeerException, SBRuntimeException

public class SBException extends Exception
The base type of exceptions.
See Also:
  • Constructor Details

    • SBException

      public SBException(SBErrorCode inErrorCode, String message)
      Construct an exception.
      Parameters:
      inErrorCode - The error code
      message - The error message
    • SBException

      public SBException(SBErrorCode inErrorCode, String message, Throwable cause)
      Construct an exception.
      Parameters:
      inErrorCode - The error code
      message - The error message
      cause - The cause
    • SBException

      public SBException(SBErrorCode inErrorCode, Throwable cause)
      Construct an exception.
      Parameters:
      inErrorCode - The error code
      cause - The cause
  • Method Details

    • errorCode

      public SBErrorCode errorCode()
      Returns:
      The error code