Merge pull request #59 from status-im/catchable-error

Use CatchableError as base instead of Exception
This commit is contained in:
Eugene Kabanov 2019-11-24 21:10:59 +02:00 committed by GitHub
commit 2518a4161f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ type
FutureVar*[T] = distinct Future[T]
FutureError* = object of Exception
FutureError* = object of CatchableError
cause*: FutureBase
CancelledError* = object of FutureError

View File

@ -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 =