Class MxGatewayWorkerException

All Implemented Interfaces:
Serializable

public final class MxGatewayWorkerException extends MxGatewayException
Thrown when the gateway reports a worker-side protocol failure such as WORKER_UNAVAILABLE or PROTOCOL_VIOLATION.
See Also:
  • Constructor Details

    • MxGatewayWorkerException

      public MxGatewayWorkerException(String operation, MxaccessGateway.ProtocolStatus protocolStatus)
      Creates a new worker exception from a protocol status.
      Parameters:
      operation - human-readable name of the failing operation
      protocolStatus - protocol status returned by the gateway
  • Method Details

    • protocolStatus

      public MxaccessGateway.ProtocolStatus protocolStatus()
      Returns the gateway protocol status that triggered this exception.
      Returns:
      the protocol status, or null if none was supplied