onException method
Add exceptHandler
and optionally exceptHandlers
to be executed after
handler in the route chain.
Implementation
void onException(ExceptionHandler exceptHandler,
[List<ExceptionHandler>? exceptHandlers]) {
_onException.add(exceptHandler);
if (exceptHandlers != null) {
_onException.addAll(exceptHandlers);
}
}