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

co.com.sofka.infraestructure.event.ErrorEvent Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
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