public class SessionOperationItemResult extends Object implements ISessionOperationItemResult
ISessionOperationItemResult.SessionOperationItemResultStatus, ISessionOperationItemResult.SessionOperationItemResultType| Modifier and Type | Method and Description |
|---|---|
ISessionOperationItemResult.SessionOperationItemResultType |
getResultType()
Returns the type of this
result. |
StartRateResult |
getStartRateResult()
Returns the embedded
start rate result, if available. |
StopRateResult |
getStopRateResult()
Returns the embedded
stop rate result, if available. |
UpdateRateResult |
getUpdateRateResult()
Returns the embedded
update rate result, if available. |
boolean |
isError()
Indicates if this
result is an erroneous return. |
boolean |
isReturn()
Indicates if this
result is a successful return. |
void |
setStopRateResult(StopRateResult stopRateResult)
Sets the embedded
stop rate result, if available. |
void |
throwStartRateError()
Throws exception that must be caught when the result is erroneous and is of type
ISessionOperationItemResult.SessionOperationItemResultType.START. |
void |
throwStopRateError()
Throws exception that must be caught when the result is erroneous and is of type
ISessionOperationItemResult.SessionOperationItemResultType.STOP. |
void |
throwUpdateRateError()
Throws exception that must be caught when the result is erroneous and is of type
ISessionOperationItemResult.SessionOperationItemResultType.UPDATE. |
public final boolean isReturn()
result is a successful return.isReturn in interface ISessionOperationItemResultisError()public final boolean isError()
result is an erroneous return.isError in interface ISessionOperationItemResultisReturn()public final ISessionOperationItemResult.SessionOperationItemResultType getResultType()
result.getResultType in interface ISessionOperationItemResultISessionOperationItemResult.SessionOperationItemResultTypepublic final StartRateResult getStartRateResult()
start rate result, if available.getStartRateResult in interface ISessionOperationItemResultpublic final StopRateResult getStopRateResult()
stop rate result, if available.getStopRateResult in interface ISessionOperationItemResultpublic final void setStopRateResult(StopRateResult stopRateResult)
stop rate result, if available.stopRateResult - the embedded stop rate result, or null.public final UpdateRateResult getUpdateRateResult()
update rate result, if available.getUpdateRateResult in interface ISessionOperationItemResultpublic final void throwStartRateError()
throws StartRateException,
InvalidItemException,
ForbiddenChargeException,
ServerFailureException,
TransactionClearingException,
CommunicationFailureException
ISessionOperationItemResult.SessionOperationItemResultType.START.throwStartRateError in interface ISessionOperationItemResultStartRateException - thrown if the cause of this erroneous result is a start rate exceptionInvalidItemException - thrown if the cause of this erroneous result is an invalid item exceptionForbiddenChargeException - thrown if the cause of this erroneous result is a forbidden charge exceptionServerFailureException - thrown if the cause of this erroneous result is a server failure exceptionTransactionClearingException - thrown if the cause of this erroneous result is a transaction clearing exceptionCommunicationFailureException - thrown if the cause of this erroneous result is a communication failure exceptionpublic final void throwStopRateError()
throws StopRateException,
InvalidItemException,
ForbiddenChargeException,
ServerFailureException,
TransactionClearingException,
CommunicationFailureException
ISessionOperationItemResult.SessionOperationItemResultType.STOP.throwStopRateError in interface ISessionOperationItemResultStopRateException - thrown if the cause of this erroneous result is a stop rate exceptionInvalidItemException - thrown if the cause of this erroneous result is an invalid item exceptionForbiddenChargeException - thrown if the cause of this erroneous result is a forbidden charge exceptionServerFailureException - thrown if the cause of this erroneous result is a server failure exceptionTransactionClearingException - thrown if the cause of this erroneous result is a transaction clearing exceptionCommunicationFailureException - thrown if the cause of this erroneous result is a communication failure exceptionpublic final void throwUpdateRateError()
throws UpdateRateException,
InvalidItemException,
ForbiddenChargeException,
ServerFailureException,
TransactionClearingException,
CommunicationFailureException
ISessionOperationItemResult.SessionOperationItemResultType.UPDATE.throwUpdateRateError in interface ISessionOperationItemResultUpdateRateException - thrown if the cause of this erroneous result is a update rate exceptionInvalidItemException - thrown if the cause of this erroneous result is an invalid item exceptionForbiddenChargeException - thrown if the cause of this erroneous result is a forbidden charge exceptionServerFailureException - thrown if the cause of this erroneous result is a server failure exceptionTransactionClearingException - thrown if the cause of this erroneous result is a transaction clearing exceptionCommunicationFailureException - thrown if the cause of this erroneous result is a communication failure exception