public class TransmitException extends CommunicationException
XBeeTransmitStatus#SUCCESS
after sending an XBee API packet.CommunicationException
,
XBeeTransmitStatus
,
Serialized FormConstructor and Description |
---|
TransmitException(String message,
Throwable cause,
XBeeTransmitStatus transmitStatus)
Creates a
TransmitException with the specified message, cause and
XBeeTransmitStatus indicating the status of the transmission. |
TransmitException(String message,
XBeeTransmitStatus transmitStatus)
Creates a
TransmitException with the specified message and
XBeeTransmitStatus indicating the status of the transmission. |
TransmitException(XBeeTransmitStatus transmitStatus)
Creates a
TransmitException with the provided
XBeeTransmitStatus indicating the status of the transmission and
as its error detail message. |
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
XBeeTransmitStatus |
getTransmitStatus()
Returns the
XBeeTransmitStatus of the exception containing
information about the transmission. |
String |
getTransmitStatusMessage()
Returns the text containing the status of the transmission from
the exception.
|
getCause
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TransmitException(String message, Throwable cause, XBeeTransmitStatus transmitStatus)
TransmitException
with the specified message, cause and
XBeeTransmitStatus
indicating the status of the transmission.message
- The associated message.cause
- The cause of this exception.transmitStatus
- The status of the transmission.Throwable
,
XBeeTransmitStatus
public TransmitException(String message, XBeeTransmitStatus transmitStatus)
TransmitException
with the specified message and
XBeeTransmitStatus
indicating the status of the transmission.message
- The associated message.transmitStatus
- The status of the transmission.XBeeTransmitStatus
public TransmitException(XBeeTransmitStatus transmitStatus)
TransmitException
with the provided
XBeeTransmitStatus
indicating the status of the transmission and
as its error detail message.transmitStatus
- The status of the transmission.XBeeTransmitStatus
public String getMessage()
getMessage
in class Throwable
public XBeeTransmitStatus getTransmitStatus()
XBeeTransmitStatus
of the exception containing
information about the transmission.XBeeTransmitStatus
public String getTransmitStatusMessage()
© Copyright 2014–2014 Digi International Inc. All rights reserved.