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