Class MxGatewaySessionException

All Implemented Interfaces:
Serializable

public final class MxGatewaySessionException extends MxGatewayException
Thrown when the gateway reports a session-related protocol failure such as SESSION_NOT_FOUND or SESSION_NOT_READY.
See Also:
  • Constructor Details

    • MxGatewaySessionException

      public MxGatewaySessionException(String operation, MxaccessGateway.ProtocolStatus protocolStatus)
      Creates a new session 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