public class ATCommandException extends CommunicationException
ATCommandStatus#OK
after sending an XBee
AT command.CommunicationException
,
ATCommandStatus
,
Serialized FormConstructor and Description |
---|
ATCommandException(ATCommandStatus atCommandStatus)
Creates an
ATCommandException with the provided
ATCommandStatus indicating the status of the AT command response
and as its error detail message. |
ATCommandException(String message,
ATCommandStatus atCommandStatus)
Creates an
ATCommandException with the specified message and
ATCommandStatus indicating the status of the AT command response. |
ATCommandException(String message,
Throwable cause,
ATCommandStatus atCommandStatus)
Creates an
ATCommandException with the specified message, cause
and ATCommandStatus indicating the status of the AT command
response. |
Modifier and Type | Method and Description |
---|---|
ATCommandStatus |
getCommandStatus()
Returns the
ATCommandStatus of the exception containing
information about the AT command response. |
String |
getCommandStatusMessage()
Returns the text containing the status of the AT command response
from the exception.
|
String |
getMessage() |
getCause
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ATCommandException(ATCommandStatus atCommandStatus)
ATCommandException
with the provided
ATCommandStatus
indicating the status of the AT command response
and as its error detail message.atCommandStatus
- The status of the AT command response.ATCommandStatus
public ATCommandException(String message, ATCommandStatus atCommandStatus)
ATCommandException
with the specified message and
ATCommandStatus
indicating the status of the AT command response.message
- The associated message.atCommandStatus
- The status of the AT command response.ATCommandStatus
public ATCommandException(String message, Throwable cause, ATCommandStatus atCommandStatus)
ATCommandException
with the specified message, cause
and ATCommandStatus
indicating the status of the AT command
response.message
- The associated message.cause
- The cause of this exception.atCommandStatus
- The status of the AT command response.Throwable
,
ATCommandStatus
public ATCommandStatus getCommandStatus()
ATCommandStatus
of the exception containing
information about the AT command response.ATCommandStatus
public String getCommandStatusMessage()
public String getMessage()
getMessage
in class Throwable
© Copyright 2014–2014 Digi International Inc. All rights reserved.