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

public static class Errors.VitalStrikeException extends Exception
Base exception for all VitalStrike errors
See Also:
  • Constructor Details

    • VitalStrikeException

      public VitalStrikeException(String message)
      Creates a new VitalStrikeException with the specified message
      Parameters:
      message - the error message
    • VitalStrikeException

      public VitalStrikeException(String message, Errors.ErrorCode errorCode)
      Creates a new VitalStrikeException with the specified message and error code
      Parameters:
      message - the error message
      errorCode - the error code
    • VitalStrikeException

      public VitalStrikeException(String message, Throwable cause)
      Creates a new VitalStrikeException with the specified message and cause
      Parameters:
      message - the error message
      cause - the cause of the error
    • VitalStrikeException

      public VitalStrikeException(String message, Throwable cause, Errors.ErrorCode errorCode)
      Creates a new VitalStrikeException with the specified message, cause, and error code
      Parameters:
      message - the error message
      cause - the cause of the error
      errorCode - the error code
  • Method Details

    • getErrorCode

      public Errors.ErrorCode getErrorCode()
      Gets the error code associated with this exception
      Returns:
      the error code