All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.narayana.blacktie.jatmibroker.xatmi.ResponseException Maven / Gradle / Ivy

There is a newer version: 5.12.0.Final
Show newest version
package org.jboss.narayana.blacktie.jatmibroker.xatmi;

/**
 * This is the exception that is raised if a response condition needs to be notified to the client.
 */
public class ResponseException extends ConnectionException {
    /**
     * None-default serialization.
     */
    private static final long serialVersionUID = 1L;

    /**
     * Any event that is being raised.
     */
    private long event;

    /**
     * The returned code.
     */
    private int rcode;

    /**
     * The buffer received.
     */
    private Buffer received;

    /**
     * An exception for reporting events
     * 
     * @param tperrno This will always be TPEEVENT
     * @param string The message
     * @param event The event may be any from Connection
     * @param received A received buffer
     * @param rcode The rcode in case of TPFAIL
     */
    public ResponseException(int tperrno, String string, long event, int rcode, Buffer received) {
        super(tperrno, string);
        this.event = event;
        this.rcode = rcode;
        this.received = received;
    }

    /**
     * Get the event
     * 
     * @return The event
     */
    public long getEvent() {
        return event;
    }

    /**
     * Get the rcode.
     * 
     * @return The rcode.
     */
    public int getRcode() {
        return rcode;
    }

    /**
     * Get a received buffer
     * 
     * @return The received buffer
     */
    public Buffer getReceived() {
        return received;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy