Add errors method to custom exception handler