Package com.spinyowl.legui.exception
Enum Class LeguiExceptionTemplate
- All Implemented Interfaces:
Serializable,Comparable<LeguiExceptionTemplate>,Constable
Exception message templates. Used to build exception with predefined message.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionUsed to create LeguiException with specified message and provided variables.Used to create LeguiException with specified message,Throwablecause and provided variables.Error message constructor.static LeguiExceptionTemplateReturns the enum constant of this class with the specified name.static LeguiExceptionTemplate[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNHANDLED_EXCEPTION
Unhandled exception. -
FAILED_TO_LOAD_FONT
Used byFont. -
FAILED_TO_LOAD_IMAGE
Used byStbBackedLoadableImage.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
message
Error message constructor.- Parameters:
args- error message variables.- Returns:
- constructed message.
-
create
Used to create LeguiException with specified message and provided variables.- Parameters:
args- error message variables.- Returns:
- exception constructed with message template.
-
create
Used to create LeguiException with specified message,Throwablecause and provided variables.- Parameters:
args- error message variables.e- throwable instance.- Returns:
- exception constructed with message template.
-