Package com.zb.mom.ww.mxgateway.client
Class MxGatewayWorkerException
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.MxGatewayWorkerException
- All Implemented Interfaces:
Serializable
Thrown when the gateway reports a worker-side protocol failure such as
WORKER_UNAVAILABLE or PROTOCOL_VIOLATION.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMxGatewayWorkerException(String operation, MxaccessGateway.ProtocolStatus protocolStatus) Creates a new worker exception from a protocol status. -
Method Summary
Modifier and TypeMethodDescriptionReturns the gateway protocol status that triggered this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MxGatewayWorkerException
Creates a new worker exception from a protocol status.- Parameters:
operation- human-readable name of the failing operationprotocolStatus- protocol status returned by the gateway
-
-
Method Details
-
protocolStatus
Returns the gateway protocol status that triggered this exception.- Returns:
- the protocol status, or
nullif none was supplied
-