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

com.rabbitmq.jms.util.AbortedException Maven / Gradle / Ivy

The newest version!
/* Copyright (c) 2013-2023 Broadcom. All Rights Reserved. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. */
package com.rabbitmq.jms.util;

import jakarta.jms.Connection;

/**
 * Internal exception to indicate that waiting API call has been cancelled by other API action -- e.g. {@link Connection#close()}.
 */
public class AbortedException extends Exception {

    private static final long serialVersionUID = 1012573992638419310L;

    /**
     * Constructs a new exception with no message.
     */
    public AbortedException() {
    }

    /**
     * Constructs a new exception with the specified detail message.
     * @param message the detail message.
     */
    public AbortedException(String message) {
        super(message);
    }

    /**
     * Constructs a new exception with the specified Throwable as cause.
     * @param cause the cause of this exception.
     */
    public AbortedException(Throwable cause) {
        super(cause);
    }

    /**
     * Constructs a new exception with the specified detail message and Throwable as cause.
     * @param message the detail message.
     * @param cause the cause of this exception.
     */
    public AbortedException(String message, Throwable cause) {
        super(message, cause);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy