Class MxGatewayCommandException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MxAccessException

public class MxGatewayCommandException extends MxGatewayException
Thrown when the gateway accepts an MXAccess command but the command itself fails at the protocol layer. Carries the original MxCommandReply and ProtocolStatus so callers can inspect the failure detail.
See Also:
  • Constructor Details

    • MxGatewayCommandException

      public MxGatewayCommandException(String operation, MxaccessGateway.ProtocolStatus protocolStatus, MxaccessGateway.MxCommandReply reply)
      Creates a new command exception.
      Parameters:
      operation - human-readable name of the failing operation
      protocolStatus - protocol status returned by the gateway
      reply - raw command reply, or null when the call failed before a reply was produced
  • 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
    • reply

      Returns the raw command reply associated with the failure.
      Returns:
      the command reply, or null if no reply was available