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

se.hiq.oss.spring.nats.event.NatsErrorEvent 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 NatsErrorEvent extends ApplicationEvent {

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

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

    public String getError() {
        return error;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy