sirius.kernel.health.ExceptionHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sirius-kernel Show documentation
Show all versions of sirius-kernel Show documentation
Provides common core classes and the microkernel powering all Sirius applications
/*
* 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