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

se.hiq.oss.spring.nats.event.NatsExceptionEvent Maven / Gradle / Ivy

There is a newer version: 0.15
Show newest version
package se.hiq.oss.spring.nats.event;

import org.springframework.context.ApplicationEvent;

import io.nats.client.Connection;


public class NatsExceptionEvent extends ApplicationEvent {

    private Exception exception;
    /**
     * Create a new NatsExceptionEvent.
     *
     * @param connection the object on which the event initially occurred (never {@code null})
     */
    public NatsExceptionEvent(final Connection connection,
                              final Exception exception) {
        super(connection);
        this.exception = exception;
    }

    @Override
    public Connection getSource() {
        return (Connection) super.getSource();
    }

    public Exception getException() {
        return exception;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy