- 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
Used when you want to implement your own exception handling, instead of just printing the stack trace.
(Throwable e)Called when a exception was caught.
e- the thrown exception