Adding custom exception handler to b8.