Module org.refcodes.exception
Package org.refcodes.exception
Interface ExceptionHandler<EXC extends Throwable>
-
- Type Parameters:
EXC
- theThrowable
type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ExceptionHandler<EXC extends Throwable>
TheExceptionHandler
interface provides means to handle exceptions which usually are occurring inside daemon threads and are usually hidden from the (business) logic. SuchException
instances usually just get logged, no customizable reaction upon such exceptions is possible. This interface enables to process to suchException
instances by providing a custom implementation if this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onException(EXC aException)
This method is to be overwritten by a custom implementation and is invoked by a daemon thread upon a caughtException
.
-