Handle all exception codes in the exception handler