public class AntCommandFailedException
extends java.lang.Exception
Constructor and Description |
---|
AntCommandFailedException(MessageFromHostType attemptedMessageType,
ServiceResult serviceResult)
Used in library after receiving ServiceResult over IPC
|
Modifier and Type | Method and Description |
---|---|
AntMessageParcel |
getAntMessage()
The ANT message related to this exception.
|
MessageFromHostType |
getAttemptedMessageType()
Which message failed.
|
AntCommandFailureReason |
getFailureReason()
Why was this exception thrown.
|
ChannelResponseMessage |
getResponseMessage()
The ANT Adapter response if result type is
AntCommandFailureReason.CHANNEL_RESPONSE . |
public AntCommandFailedException(MessageFromHostType attemptedMessageType, ServiceResult serviceResult)
public AntCommandFailureReason getFailureReason()
public MessageFromHostType getAttemptedMessageType()
public AntMessageParcel getAntMessage()
getResponseMessage()
for AntCommandFailureReason.CHANNEL_RESPONSE
.public ChannelResponseMessage getResponseMessage()
AntCommandFailureReason.CHANNEL_RESPONSE
.Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.