added ability to set custom exception handler class