Enum Class BaseErrorCodes

java.lang.Object
java.lang.Enum<BaseErrorCodes>
com.j3d.errors.BaseErrorCodes
All Implemented Interfaces:
Serializable, Comparable<BaseErrorCodes>, Constable

public enum BaseErrorCodes extends Enum<BaseErrorCodes>
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:
  • Enum Constant Details

  • 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

      public static BaseErrorCodes[] 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

      public static BaseErrorCodes valueOf(String name)
      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 name
      NullPointerException - 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.