Package valorless.rarespawns.exceptions
Class InvalidSpell
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
valorless.rarespawns.exceptions.InvalidSpell
- All Implemented Interfaces:
Serializable
Thrown when a spell value from configuration cannot be parsed.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidSpell(String message) Creates a new InvalidSpell with the provided message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidSpell
Creates a new InvalidSpell with the provided message.- Parameters:
message- details about the invalid spell
-
-
Method Details
-
Throw
Convenience helper that always throws this exception. Declared return type enables fluent usage inside expressions.- Parameters:
message- details about the invalid spell- Returns:
- never returns; always throws InvalidSpell
- Throws:
InvalidSpell- always
-