Package valorless.rarespawns.exceptions
Class InvalidBarColor
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
valorless.rarespawns.exceptions.InvalidBarColor
- All Implemented Interfaces:
Serializable
Thrown when a boss bar color parsed from configuration is invalid or unsupported.
Use the static Throw helper to standardize error creation in parsers.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidBarColor(String message) Creates a new InvalidBarColor 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
-
InvalidBarColor
Creates a new InvalidBarColor with the provided message.- Parameters:
message- details about the invalid color
-
-
Method Details
-
Throw
Convenience helper that always throws this exception. Declared return type enables fluent usage inside expressions.- Parameters:
message- details about the invalid color- Returns:
- never returns; always throws InvalidBarColor
- Throws:
InvalidBarColor- always
-