mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-01-10 11:26:12 +00:00
5ebd771d35
This PR replaces the global strict exception mode with an option to handle `Exception` per function while at the same time enabling strict exception checking globally by default as has been planned for v4. `handleException` mode raises `AsyncExceptionError` to distinguish it from `ValueError` which may originate from user code. * remove obsolete 1.2 config options
10 lines
309 B
Nim
10 lines
309 B
Nim
type
|
|
AsyncError* = object of CatchableError
|
|
## Generic async exception
|
|
AsyncTimeoutError* = object of AsyncError
|
|
## Timeout exception
|
|
|
|
AsyncExceptionError* = object of AsyncError
|
|
## Error raised in `handleException` mode - the original exception is
|
|
## available from the `parent` field.
|