Enum Class ErrorUDT

java.lang.Object
java.lang.Enum<ErrorUDT>
com.barchart.udt.ErrorUDT
All Implemented Interfaces:
Serializable, Comparable<ErrorUDT>, Constable

public enum ErrorUDT extends Enum<ErrorUDT>
keep code values in sync with
See Also:
  • Enum Constant Details

    • SUCCESS

      public static final ErrorUDT SUCCESS
    • ECONNSETUP

      public static final ErrorUDT ECONNSETUP
    • NOSERVER

      public static final ErrorUDT NOSERVER
    • ECONNREJ

      public static final ErrorUDT ECONNREJ
    • ESOCKFAIL

      public static final ErrorUDT ESOCKFAIL
    • ESECFAIL

      public static final ErrorUDT ESECFAIL
    • ECONNFAIL

      public static final ErrorUDT ECONNFAIL
    • ECONNLOST

      public static final ErrorUDT ECONNLOST
    • ENOCONN

      public static final ErrorUDT ENOCONN
    • ERESOURCE

      public static final ErrorUDT ERESOURCE
    • ETHREAD

      public static final ErrorUDT ETHREAD
    • ENOBUF

      public static final ErrorUDT ENOBUF
    • EFILE

      public static final ErrorUDT EFILE
    • EINVRDOFF

      public static final ErrorUDT EINVRDOFF
    • ERDPERM

      public static final ErrorUDT ERDPERM
    • EINVWROFF

      public static final ErrorUDT EINVWROFF
    • EWRPERM

      public static final ErrorUDT EWRPERM
    • EINVOP

      public static final ErrorUDT EINVOP
    • EBOUNDSOCK

      public static final ErrorUDT EBOUNDSOCK
    • ECONNSOCK

      public static final ErrorUDT ECONNSOCK
    • EINVPARAM

      public static final ErrorUDT EINVPARAM
    • EINVSOCK

      public static final ErrorUDT EINVSOCK
    • EUNBOUNDSOCK

      public static final ErrorUDT EUNBOUNDSOCK
    • ENOLISTEN

      public static final ErrorUDT ENOLISTEN
    • ERDVNOSERV

      public static final ErrorUDT ERDVNOSERV
    • ERDVUNBOUND

      public static final ErrorUDT ERDVUNBOUND
    • ESTREAMILL

      public static final ErrorUDT ESTREAMILL
    • EDGRAMILL

      public static final ErrorUDT EDGRAMILL
    • EDUPLISTEN

      public static final ErrorUDT EDUPLISTEN
    • ELARGEMSG

      public static final ErrorUDT ELARGEMSG
    • EINVPOLLID

      public static final ErrorUDT EINVPOLLID
    • EASYNCFAIL

      public static final ErrorUDT EASYNCFAIL
    • EASYNCSND

      public static final ErrorUDT EASYNCSND
    • EASYNCRCV

      public static final ErrorUDT EASYNCRCV
    • ETIMEOUT

      public static final ErrorUDT ETIMEOUT
    • EPEERERR

      public static final ErrorUDT EPEERERR
    • WRAPPER_UNKNOWN

      public static final ErrorUDT WRAPPER_UNKNOWN
    • WRAPPER_UNIMPLEMENTED

      public static final ErrorUDT WRAPPER_UNIMPLEMENTED
    • WRAPPER_MESSAGE

      public static final ErrorUDT WRAPPER_MESSAGE
    • USER_DEFINED_MESSAGE

      public static final ErrorUDT USER_DEFINED_MESSAGE
  • Field Details

    • code

      private final int code
    • description

      private final String description
    • ENUM_VALS

      static final ErrorUDT[] ENUM_VALS
  • Constructor Details

    • ErrorUDT

      private ErrorUDT(int code, String description)
  • Method Details

    • values

      public static ErrorUDT[] 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 ErrorUDT 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
    • getCode

      public int getCode()
    • getDescription

      public String getDescription()
    • errorFrom

      public static ErrorUDT errorFrom(int code)
    • descriptionFrom

      public static String descriptionFrom(int socketID, int errorCode, String errorComment)