package com.zb.mom.ww.mxgateway.client;

/**
 * Base unchecked exception thrown by the MXAccess Gateway Java client.
 *
 * <p>All gateway-specific failures derive from this type so callers can catch a
 * single supertype regardless of whether the cause was a transport error,
 * protocol-level failure, or MXAccess-side problem.
 */
public class MxGatewayException extends RuntimeException {
    /**
     * Creates a new exception with the supplied message.
     *
     * @param message human-readable description of the failure
     */
    public MxGatewayException(String message) {
        super(message);
    }

    /**
     * Creates a new exception with the supplied message and underlying cause.
     *
     * @param message human-readable description of the failure
     * @param cause underlying error that triggered the failure
     */
    public MxGatewayException(String message, Throwable cause) {
        super(message, cause);
    }
}
