Enum X2JErrorCodes

java.lang.Object
java.lang.Enum<X2JErrorCodes>
com.x2j.converter.utils.X2JErrorCodes
All Implemented Interfaces:
Serializable, Comparable<X2JErrorCodes>, java.lang.constant.Constable

public enum X2JErrorCodes extends Enum<X2JErrorCodes>
Error codes to uniquely identify/associate an error scenario.
  • Enum Constant Details

    • X2J_ERR_000

      public static final X2JErrorCodes X2J_ERR_000
      Fatal error. Please rebuild the jar or download the latest one from Github.
    • X2J_ERR_001

      public static final X2JErrorCodes X2J_ERR_001
      Error while reading XML from file.
    • X2J_ERR_002

      public static final X2JErrorCodes X2J_ERR_002
      Error while reading JSON from file/string.
    • X2J_ERR_003

      public static final X2JErrorCodes X2J_ERR_003
      Error while parsing JSON from file/string.
    • X2J_ERR_004

      public static final X2JErrorCodes X2J_ERR_004
      Error while reading XML data using XPaths.
    • X2J_ERR_005

      public static final X2JErrorCodes X2J_ERR_005
      Error while reading XML attribute value using XPaths.
    • X2J_ERR_006

      public static final X2JErrorCodes X2J_ERR_006
      Error while reading XML element using XPaths.
    • X2J_ERR_007

      public static final X2JErrorCodes X2J_ERR_007
      Error while converting XML element/document to String.
    • X2J_ERR_008

      public static final X2JErrorCodes X2J_ERR_008
      Error while writing JSON to file.
    • X2J_ERR_009

      public static final X2JErrorCodes X2J_ERR_009
      Error while parsing XML from String.
    • X2J_ERR_010

      public static final X2JErrorCodes X2J_ERR_010
      Input XML file not found.
    • X2J_ERR_011

      public static final X2JErrorCodes X2J_ERR_011
      Error during string operation.
  • Method Details

    • values

      public static X2JErrorCodes[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static X2JErrorCodes valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null