Package com.j3d.errors
Enum Class BaseErrorCodes
- All Implemented Interfaces:
Serializable,Comparable<BaseErrorCodes>,Constable
Defines base error codes for different modules or categories within J3Engine
These base codes are intended to be used within the specific
J3DError child classes.- Author:
- Lehlogonolo Poole
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBase code forEngineExceptionBase code forInteractionExceptionBase code forMathExceptionBase code forSceneExceptionBase code forGenExceptionBase code forGenericIOExceptionBase code forProjectFileExceptionBase code forThreadsException -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBaseErrorCodes(int i) Constructs a BaseErrorCodes enum constant with the specified integer base code. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the integer base error code associated with this enum constant.static BaseErrorCodesReturns the enum constant of this class with the specified name.static BaseErrorCodes[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GENERATION
Base code forGenException -
THREADING
Base code forThreadsException -
ENGINE_CORE
Base code forEngineException -
ENGINE_CORE_SCENE
Base code forSceneException -
ENGINE_CORE_MATH
Base code forMathException -
ENGINE_CORE_INTERACT
Base code forInteractionException -
IO
Base code forGenericIOException -
IO_PROJECT
Base code forProjectFileException
-
-
Field Details
-
baseCode
private final int baseCode
-
-
Constructor Details
-
BaseErrorCodes
private BaseErrorCodes(int i) Constructs a BaseErrorCodes enum constant with the specified integer base code.- Parameters:
i- The integer base code for the error category.
-
-
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
-
getBaseCode
public int getBaseCode()Returns the integer base error code associated with this enum constant.- Returns:
- The integer base error code.
-