public enum LeguiExceptionTemplate extends java.lang.Enum<LeguiExceptionTemplate>
Enum Constant and Description |
---|
FAILED_TO_LOAD_FONT
Used by
Font . |
FAILED_TO_LOAD_IMAGE
Used by
BufferedImage . |
GSON_REGISTRY_TYPE_EXIST
Used by
GsonMarshalUtil . |
MARSHAL_EXCEPTION
Marshal exception.
|
MARSHALLER_IS_NOT_EXIST
Used by
GsonMarshalUtil . |
UNHANDLED_EXCEPTION
Unhandled exception.
|
UNMARSHAL_EXCEPTION
Unmarshal exception.
|
UNMARSHALLER_IS_NOT_EXIST
Used by
GsonMarshalUtil . |
Modifier and Type | Method and Description |
---|---|
LeguiException |
create(java.lang.String... args)
Used to create LeguiException with specified message and provided variables.
|
LeguiException |
create(java.lang.Throwable e,
java.lang.String... args)
Used to create LeguiException with specified message,
Throwable cause and provided variables. |
java.lang.String |
message(java.lang.String... args)
Error message constructor.
|
static LeguiExceptionTemplate |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LeguiExceptionTemplate[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LeguiExceptionTemplate UNHANDLED_EXCEPTION
public static final LeguiExceptionTemplate MARSHAL_EXCEPTION
JsonMarshaller
.public static final LeguiExceptionTemplate UNMARSHAL_EXCEPTION
JsonMarshaller
.public static final LeguiExceptionTemplate MARSHALLER_IS_NOT_EXIST
GsonMarshalUtil
.public static final LeguiExceptionTemplate UNMARSHALLER_IS_NOT_EXIST
GsonMarshalUtil
.public static final LeguiExceptionTemplate GSON_REGISTRY_TYPE_EXIST
GsonMarshalUtil
.public static final LeguiExceptionTemplate FAILED_TO_LOAD_FONT
Font
.public static final LeguiExceptionTemplate FAILED_TO_LOAD_IMAGE
BufferedImage
.public static LeguiExceptionTemplate[] values()
for (LeguiExceptionTemplate c : LeguiExceptionTemplate.values()) System.out.println(c);
public static LeguiExceptionTemplate valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String message(java.lang.String... args)
args
- error message variables.public LeguiException create(java.lang.String... args)
args
- error message variables.public LeguiException create(java.lang.Throwable e, java.lang.String... args)
Throwable
cause and provided variables.args
- error message variables.