|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<MxException.ErrorCode>
com.moxa.mxuportapi.MxException.ErrorCode
public static enum MxException.ErrorCode
Enum Constant Summary | |
---|---|
InvalidModemStatus
Modem status is not accessible in related flow control mode. |
|
InvalidParameter
The parameter is invalid. |
|
InvalidResource
The required resource is not available. |
|
NotSupported
This function is not supported by this model. |
|
PortIsNotOpened
This port is not opened. |
|
PortReopened
The port is reopened or has not been closed properly. |
|
ReadOverflow
The read buffer has overflowed. |
|
Unsuccessful
An implicit exception from underlayer. |
|
UsbEnumFailed
An error orrurred when enumerating the USB device. |
|
UsbNoPermission
Has no USB permission. |
|
UsbNotReady
The USB connection is not available. |
|
UsbOpenFailed
USB device open failed. |
|
UsbRequestFailed
Failed to send USB request. |
Method Summary | |
---|---|
java.lang.String |
getString()
Get the description of this error. |
static MxException.ErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MxException.ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final MxException.ErrorCode InvalidModemStatus
public static final MxException.ErrorCode InvalidParameter
public static final MxException.ErrorCode InvalidResource
public static final MxException.ErrorCode NotSupported
public static final MxException.ErrorCode PortIsNotOpened
public static final MxException.ErrorCode PortReopened
public static final MxException.ErrorCode ReadOverflow
public static final MxException.ErrorCode Unsuccessful
Exception
to extract more information.
public static final MxException.ErrorCode UsbEnumFailed
public static final MxException.ErrorCode UsbNoPermission
public static final MxException.ErrorCode UsbNotReady
public static final MxException.ErrorCode UsbOpenFailed
public static final MxException.ErrorCode UsbRequestFailed
Method Detail |
---|
public java.lang.String getString()
public static MxException.ErrorCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static MxException.ErrorCode[] values()
for (MxException.ErrorCode c : MxException.ErrorCode.values()) System.out.println(c);
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |