-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ability to specify custom exception handlers
change approach in exception handlers - Allow only method name or status code as handler - Don't require to return array with code and body use handler as void function Another change in exception handling apporach - Remove `exception_code` in favour of `exception_handler` in Configuration - Add Thorwable::Handlers, which defines handlers for all status codes - Remove ability to specify handlers by status code in favour of explicit handlers Rename class name to reflect recent changes ruby 2.0.0 compatibility changes Revert "Another change in exception handling apporach" This reverts commit 3ee3620. Revert "Rename class name to reflect recent changes" This reverts commit e3c9d82. Revert "ruby 2.0.0 compatibility changes" This reverts commit 7729415. small code cleanup Don’t use protected handled_exceptions method Rename `exception_code` to `exception_code` which returns either exception code, or handler name
- Loading branch information
Showing
5 changed files
with
63 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters