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

sirius.kernel.health.ExceptionHandler Maven / Gradle / Ivy

Go to download

Provides common core classes and the microkernel powering all Sirius applications

There is a newer version: 12.9.1
Show newest version
/*
 * Made with all the love in the world
 * by scireum in Remshalden, Germany
 *
 * Copyright by scireum GmbH
 * http://www.scireum.de - [email protected]
 */

package sirius.kernel.health;

/**
 * Instances registered for this interface will be notified about every exception handled by {@link Exceptions}
 */
public interface ExceptionHandler {
    /**
     * Invoked to handle the given exception.
     * 

* Can be used to get notified about any exception which occurs in the system. * * @param incident contains the error description to be processed. * @throws Exception as this method is already called from within the exception handling system, errors in here * should not be sent there again, but simply be thrown by this method * @see sirius.kernel.async.CallContext#getMDC() * @see sirius.kernel.health.Exceptions#handle() */ void handle(Incident incident) throws Exception; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy