rename SystemError to CatchableError in order to avoid breaking Nimble and probably lots of other code
This commit is contained in:
parent
1d78ba64b4
commit
4cf1e3eb4b
3 changed files with 7 additions and 6 deletions
|
|
@ -489,18 +489,18 @@ type
|
|||
## but that are strictly uncatchable as they can also be mapped to
|
||||
## a ``quit`` / ``trap`` / ``exit`` operation.
|
||||
|
||||
Error* = object of Exception ## \
|
||||
CatchableError* = object of Exception ## \
|
||||
## Abstract class for all exceptions that are catchable.
|
||||
IOError* = object of Error ## \
|
||||
IOError* = object of CatchableError ## \
|
||||
## Raised if an IO error occurred.
|
||||
EOFError* = object of IOError ## \
|
||||
## Raised if an IO "end of file" error occurred.
|
||||
OSError* = object of Error ## \
|
||||
OSError* = object of CatchableError ## \
|
||||
## Raised if an operating system service failed.
|
||||
errorCode*: int32 ## OS-defined error code describing this error.
|
||||
LibraryError* = object of OSError ## \
|
||||
## Raised if a dynamic library could not be loaded.
|
||||
ResourceExhaustedError* = object of Error ## \
|
||||
ResourceExhaustedError* = object of CatchableError ## \
|
||||
## Raised if a resource request could not be fulfilled.
|
||||
ArithmeticError* = object of Defect ## \
|
||||
## Raised if any kind of arithmetic error occurred.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue