Class THEOplayerException

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class THEOplayerException
    extends Exception
                        

    A THEOplayer exception that gives an informative description of the error that occurred.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final ErrorCode code
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      ErrorCode getCode() The unique ErrorCode of the error.
      ErrorCategory getCategory() The ErrorCategory of the error.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • THEOplayerException

        THEOplayerException(ErrorCode code, String message)
        Constructs an exception that can be thrown by the player.
        Parameters:
        code - The ErrorCode of the exception.
        message - A textual description of the exception.
      • THEOplayerException

        THEOplayerException(ErrorCode code, String message, Throwable cause)
        Constructs an exception that can be thrown by the player.
        Parameters:
        code - The ErrorCode of the exception.
        message - A textual description of the exception.
        cause - The cause of the exception.