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
commit 01523b2b58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

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,