pippo
pippo copied to clipboard
ErrorHandler only handles Exceptions not Errors or other Throwables
The ErrorHandler interface is only designed for Exception and its subclasses, but the hierarchy is rooted at Throwable. Especially some 500 errors are of type Error.
I had an instance where I was confronted with the default Jetty error page, showing the whole stacktrace because Pippos dispatch only catches Exception and not Throwable.
There might be some research of reasonable behaviour needed, but as Jetty is handling Error types, pippo should probably as well.
@lambdaupb I think that I understand what you say. Can you please add a concrete example from your application (a code snippet or something similar) to visualize the problem? Thanks!
You can just throw an Error inside a controller method.
throw new NoClassDefFoundError("test");