Enum Class SCErrorType

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

public enum SCErrorType extends Enum<SCErrorType> implements XdrElement
SCErrorType's original definition in the XDR file is:
 enum SCErrorType
 {
     SCE_CONTRACT = 0,          // Contract-specific, user-defined codes.
     SCE_WASM_VM = 1,           // Errors while interpreting WASM bytecode.
     SCE_CONTEXT = 2,           // Errors in the contract's host context.
     SCE_STORAGE = 3,           // Errors accessing host storage.
     SCE_OBJECT = 4,            // Errors working with host objects.
     SCE_CRYPTO = 5,            // Errors in cryptographic operations.
     SCE_EVENTS = 6,            // Errors while emitting events.
     SCE_BUDGET = 7,            // Errors relating to budget limits.
     SCE_VALUE = 8,             // Errors working with host values or SCVals.
     SCE_AUTH = 9               // Errors from the authentication subsystem.
 };
 
  • Enum Constant Details

    • SCE_CONTRACT

      public static final SCErrorType SCE_CONTRACT
    • SCE_WASM_VM

      public static final SCErrorType SCE_WASM_VM
    • SCE_CONTEXT

      public static final SCErrorType SCE_CONTEXT
    • SCE_STORAGE

      public static final SCErrorType SCE_STORAGE
    • SCE_OBJECT

      public static final SCErrorType SCE_OBJECT
    • SCE_CRYPTO

      public static final SCErrorType SCE_CRYPTO
    • SCE_EVENTS

      public static final SCErrorType SCE_EVENTS
    • SCE_BUDGET

      public static final SCErrorType SCE_BUDGET
    • SCE_VALUE

      public static final SCErrorType SCE_VALUE
    • SCE_AUTH

      public static final SCErrorType SCE_AUTH
  • Method Details

    • values

      public static SCErrorType[] 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 SCErrorType 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 SCErrorType decode(XdrDataInputStream stream) throws IOException
      Throws:
      IOException
    • encode

      public void encode(XdrDataOutputStream stream) throws IOException
      Specified by:
      encode in interface XdrElement
      Throws:
      IOException
    • fromXdrBase64

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

      public static SCErrorType fromXdrByteArray(byte[] xdr) throws IOException
      Throws:
      IOException