Package stawa.vitalstrike
Class Errors.VitalStrikeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
stawa.vitalstrike.Errors.VitalStrikeException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Errors.CommandException,Errors.ConfigurationException,Errors.DatabaseException,Errors.PlayerException,Errors.UpdateException
- Enclosing class:
Errors
Base exception for all VitalStrike errors
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVitalStrikeException(String message) Creates a new VitalStrikeException with the specified messageVitalStrikeException(String message, Throwable cause) Creates a new VitalStrikeException with the specified message and causeVitalStrikeException(String message, Throwable cause, Errors.ErrorCode errorCode) Creates a new VitalStrikeException with the specified message, cause, and error codeVitalStrikeException(String message, Errors.ErrorCode errorCode) Creates a new VitalStrikeException with the specified message and error code -
Method Summary
Modifier and TypeMethodDescriptionGets the error code associated with this exceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
VitalStrikeException
Creates a new VitalStrikeException with the specified message- Parameters:
message- the error message
-
VitalStrikeException
Creates a new VitalStrikeException with the specified message and error code- Parameters:
message- the error messageerrorCode- the error code
-
VitalStrikeException
Creates a new VitalStrikeException with the specified message and cause- Parameters:
message- the error messagecause- the cause of the error
-
VitalStrikeException
Creates a new VitalStrikeException with the specified message, cause, and error code- Parameters:
message- the error messagecause- the cause of the errorerrorCode- the error code
-
-
Method Details
-
getErrorCode
Gets the error code associated with this exception- Returns:
- the error code
-