Package party.iroiro.luajava
Enum Class LuaException.LuaError
- All Implemented Interfaces:
Serializable,Comparable<LuaException.LuaError>,Constable
- Enclosing class:
- LuaException
Lua-relevant error types.
Integer values of Lua error codes may vary between Lua versions. This library handles the conversion from the Lua integers to interpretable Java enum values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptiona file-related errorerror while running a __gc metamethoderror while running the message handlera Java-side errormemory allocation errorno errorsa runtime errorsyntax error during precompilationunknown error codethe thread (coroutine) yields -
Method Summary
Modifier and TypeMethodDescriptionstatic LuaException.LuaErrorReturns the enum constant of this class with the specified name.static LuaException.LuaError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FILE
a file-related error -
GC
error while running a __gc metamethod -
HANDLER
error while running the message handler -
MEMORY
memory allocation error -
OK
no errors -
RUNTIME
a runtime error -
SYNTAX
syntax error during precompilation -
YIELD
the thread (coroutine) yields -
UNKNOWN
unknown error code -
JAVA
a Java-side error
-
-
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
-