Package net.minestom.server.exception
Interface ExceptionHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Used when you want to implement your own exception handling, instead of just printing the stack trace.
Sets with ExceptionManager.setExceptionHandler(ExceptionHandler)
.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when a exception was caught.
-
Method Details
-
handleException
Called when a exception was caught.- Parameters:
e
- the thrown exception
-