-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise all SystemCallErrors as Trilogy::Error.
This allows syscall errors to be rescued generically by Trilogy::Error, or handled individually by consumers using their oriinal Errno classes. To make this work, we subclass all of the SystemCallErrors and include the base error module on each of them. I've also removed the constructors from the existing Errno class subclasses (Trilogy::TimeoutError, Trilogy::ConnectionClosedError, etc.). We never set an error_code on syscall errors, so the constructors are not needed.
- Loading branch information
1 parent
a269683
commit bc6c5a4
Showing
4 changed files
with
37 additions
and
19 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