barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

com.barchart.udt
Enum ErrorUDT

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

public enum ErrorUDT
extends Enum<ErrorUDT>

keep code values in sync with

See Also:
UDT Error Codes List

Enum Constant Summary
EASYNCFAIL
           
EASYNCRCV
           
EASYNCSND
           
EBOUNDSOCK
           
ECONNFAIL
           
ECONNLOST
           
ECONNREJ
           
ECONNSETUP
           
ECONNSOCK
           
EDGRAMILL
           
EDUPLISTEN
           
EFILE
           
EINVOP
           
EINVPARAM
           
EINVPOLLID
           
EINVRDOFF
           
EINVSOCK
           
EINVWROFF
           
ELARGEMSG
           
ENOBUF
           
ENOCONN
           
ENOLISTEN
           
EPEERERR
           
ERDPERM
           
ERDVNOSERV
           
ERDVUNBOUND
           
ERESOURCE
           
ESECFAIL
           
ESOCKFAIL
           
ESTREAMILL
           
ETHREAD
           
ETIMEOUT
           
EUNBOUNDSOCK
           
EWRPERM
           
NOSERVER
           
SUCCESS
           
USER_DEFINED_MESSAGE
           
WRAPPER_MESSAGE
           
WRAPPER_UNIMPLEMENTED
           
WRAPPER_UNKNOWN
           
 
Method Summary
static String descriptionFrom(int socketID, int errorCode, String errorComment)
           
static ErrorUDT errorFrom(int code)
           
 int getCode()
           
 String getDescription()
           
static ErrorUDT valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ErrorUDT[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

values

public static ErrorUDT[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ErrorUDT c : ErrorUDT.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ErrorUDT 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

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)

barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

Copyright © 2009-2013 Barchart, Inc.. All Rights Reserved.