public class THEOplayerException extends Exception
Constructor and Description |
---|
THEOplayerException(ErrorCode code,
String message)
Constructs an exception that can be thrown by the player.
|
THEOplayerException(ErrorCode code,
String message,
Throwable cause)
Constructs an exception that can be thrown by the player.
|
Modifier and Type | Method and Description |
---|---|
ErrorCategory |
getCategory()
The
ErrorCategory of the error. |
ErrorCode |
getCode()
The unique
ErrorCode of the error. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public THEOplayerException(ErrorCode code, String message)
code
- The ErrorCode
of the exception. (NonNull)message
- A textual description of the exception. (NonNull)public THEOplayerException(ErrorCode code, String message, Throwable cause)
code
- The ErrorCode
of the exception. (NonNull)message
- A textual description of the exception. (NonNull)cause
- The cause of the exception. (Nullable)public ErrorCode getCode()
ErrorCode
of the error.public ErrorCategory getCategory()
ErrorCategory
of the error.