Enum Class ErrorCode

java.lang.Object
java.lang.Enum<ErrorCode>
org.stellar.sdk.xdr.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<ErrorCode>, Constable

public enum ErrorCode extends Enum<ErrorCode>
ErrorCode's original definition in the XDR file is:
 enum ErrorCode
 {
     ERR_MISC = 0, // Unspecific error
     ERR_DATA = 1, // Malformed data
     ERR_CONF = 2, // Misconfiguration error
     ERR_AUTH = 3, // Authentication failure
     ERR_LOAD = 4  // System overloaded
 };
 
  • Enum Constant Details

    • ERR_MISC

      public static final ErrorCode ERR_MISC
    • ERR_DATA

      public static final ErrorCode ERR_DATA
    • ERR_CONF

      public static final ErrorCode ERR_CONF
    • ERR_AUTH

      public static final ErrorCode ERR_AUTH
    • ERR_LOAD

      public static final ErrorCode ERR_LOAD
  • Method Details

    • values

      public static ErrorCode[] 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 ErrorCode 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
    • getValue

      public int getValue()
    • decode

      public static ErrorCode decode(XdrDataInputStream stream) throws IOException
      Throws:
      IOException
    • encode

      public void encode(XdrDataOutputStream stream) throws IOException
      Throws:
      IOException
    • fromXdrBase64

      public static ErrorCode fromXdrBase64(String xdr) throws IOException
      Throws:
      IOException
    • fromXdrByteArray

      public static ErrorCode fromXdrByteArray(byte[] xdr) throws IOException
      Throws:
      IOException
    • toXdrBase64

      default String toXdrBase64() throws IOException
      Throws:
      IOException
    • toXdrByteArray

      default byte[] toXdrByteArray() throws IOException
      Throws:
      IOException