public class ATCommandException extends CommunicationException
ATCommandStatus#OK after sending an XBee
AT command.CommunicationException,
ATCommandStatus,
Serialized Form| Constructor 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() |
getCauseaddSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic 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.ATCommandStatuspublic 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.ATCommandStatuspublic 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,
ATCommandStatuspublic ATCommandStatus getCommandStatus()
ATCommandStatus of the exception containing
information about the AT command response.ATCommandStatuspublic String getCommandStatusMessage()
public String getMessage()
getMessage in class Throwable© Copyright 2014?2015 Digi International Inc. All rights reserved.