Logo
Explore Help
Sign In
logos-storage/nim-chronos
1
0
Fork 0
You've already forked nim-chronos
mirror of https://github.com/logos-storage/nim-chronos.git synced 2026-01-03 22:13:06 +00:00
Code Issues Packages Projects Releases Wiki Activity
nim-chronos/chronos/internal/errors.nim

10 lines
309 B
Nim
Raw Permalink Normal View History

Introduce chronos/internals, move some code (#453) * Introduce chronos/internals, move some code This PR breaks the include dependencies between `asyncfutures2` and `asyncmacros2` by moving the dispatcher and some other code to a new module. This step makes it easier to implement `asyncraises` support for future utilities like `allFutures` etc avoiding the need to play tricks with include order etc. Future PR:s may further articulate the difference between "internal" stuff subject to API breakage and regular public API intended for end users (rather than advanced integrators). * names * windows fix
2023-10-17 20:25:25 +02:00
type
AsyncError* = object of CatchableError
## Generic async exception
AsyncTimeoutError* = object of AsyncError
## Timeout exception
per-function `Exception` handling (#457) 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
2023-11-08 15:12:32 +01:00
AsyncExceptionError* = object of AsyncError
## Error raised in `handleException` mode - the original exception is
## available from the `parent` field.
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.0 Page: 31ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API