
se.hiq.oss.spring.nats.event.NatsErrorEvent Maven / Gradle / Ivy
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