co.com.sofka.infraestructure.event.ErrorEvent Maven / Gradle / Ivy
package co.com.sofka.infraestructure.event;
import java.time.Instant;
import java.util.UUID;
/**
* The type Error event.
*/
public class ErrorEvent {
public final Instant when;
public final UUID uuid;
public final String identify;
public final Throwable error;
/**
* Instantiates a new Error event.
*/
public ErrorEvent(String identify, Throwable throwable) {
this.identify = identify;
this.error = throwable;
this.when = Instant.now();
this.uuid = UUID.randomUUID();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy