change some Exceptions to CatchableError or Defect, fixes #10288 (#14069)

This commit is contained in:
hlaaftana
2020-04-22 17:49:41 +03:00
committed by GitHub
parent 5c26a83a4a
commit 01523b2b58
4 changed files with 5 additions and 5 deletions

View File

@@ -198,7 +198,7 @@ type
Captures* = distinct RegexMatch
CaptureBounds* = distinct RegexMatch
RegexError* = ref object of Exception
RegexError* = ref object of CatchableError
RegexInternalError* = ref object of RegexError
## Internal error in the module, this probably means that there is a bug

View File

@@ -33,7 +33,7 @@ type
FutureVar*[T] = distinct Future[T]
FutureError* = object of Exception
FutureError* = object of Defect
cause*: FutureBase
when not defined(release):

View File

@@ -83,7 +83,7 @@ when defineSsl:
type
Certificate* = string ## DER encoded certificate
SslError* = object of Exception
SslError* = object of CatchableError
SslCVerifyMode* = enum
CVerifyNone, CVerifyPeer, CVerifyPeerUseEnvVars
@@ -146,7 +146,7 @@ type
ReadLineResult* = enum ## result for readLineAsync
ReadFullLine, ReadPartialLine, ReadDisconnected, ReadNone
TimeoutError* = object of Exception
TimeoutError* = object of CatchableError
SocketFlag* {.pure.} = enum
Peek,

View File

@@ -252,7 +252,7 @@ else:
VnodeRename, VnodeRevoke
type
IOSelectorsException* = object of Exception
IOSelectorsException* = object of CatchableError
ReadyKey* = object
fd* : int