Use CatchableError as base instead of Exception
This commit is contained in:
parent
943a961201
commit
4d61345978
|
@ -53,7 +53,7 @@ type
|
|||
|
||||
FutureVar*[T] = distinct Future[T]
|
||||
|
||||
FutureError* = object of Exception
|
||||
FutureError* = object of CatchableError
|
||||
cause*: FutureBase
|
||||
|
||||
CancelledError* = object of FutureError
|
||||
|
|
|
@ -49,11 +49,11 @@ type
|
|||
queue: Deque[T]
|
||||
maxsize: int
|
||||
|
||||
AsyncQueueEmptyError* = object of Exception
|
||||
AsyncQueueEmptyError* = object of CatchableError
|
||||
## ``AsyncQueue`` is empty.
|
||||
AsyncQueueFullError* = object of Exception
|
||||
AsyncQueueFullError* = object of CatchableError
|
||||
## ``AsyncQueue`` is full.
|
||||
AsyncLockError* = object of Exception
|
||||
AsyncLockError* = object of CatchableError
|
||||
## ``AsyncLock`` is either locked or unlocked.
|
||||
|
||||
proc newAsyncLock*(): AsyncLock =
|
||||
|
|
Loading…
Reference in New Issue