Package com.zb.mom.ww.mxgateway.client
Class MxAccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.zb.mom.ww.mxgateway.client.MxGatewayException
com.zb.mom.ww.mxgateway.client.MxGatewayCommandException
com.zb.mom.ww.mxgateway.client.MxAccessException
- All Implemented Interfaces:
Serializable
Thrown when the worker reports an MXAccess COM-side failure. Distinguishes
MXAccess errors (non-zero
HResult or unsuccessful MxStatusProxy)
from other gateway protocol failures.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMxAccessException(String operation, MxaccessGateway.MxCommandReply reply) Creates a new MXAccess exception derived from a command reply.MxAccessException(String operation, MxaccessGateway.ProtocolStatus protocolStatus, MxaccessGateway.MxCommandReply reply) Creates a new MXAccess exception with an explicit protocol status. -
Method Summary
Methods inherited from class com.zb.mom.ww.mxgateway.client.MxGatewayCommandException
protocolStatus, replyMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MxAccessException
public MxAccessException(String operation, MxaccessGateway.ProtocolStatus protocolStatus, MxaccessGateway.MxCommandReply reply) Creates a new MXAccess exception with an explicit protocol status.- Parameters:
operation- human-readable name of the failing operationprotocolStatus- protocol status reported by the gatewayreply- raw command reply containing the MXAccess failure detail
-
MxAccessException
Creates a new MXAccess exception derived from a command reply.- Parameters:
operation- human-readable name of the failing operationreply- raw command reply; the protocol status is taken from this reply when present
-