-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: specify raising exceptions in daemon
module
#1249
Conversation
daemon
packagedaemon
module
Pull request was converted to draft
72702cd
to
ad9b865
Compare
api: DaemonAPI, ticket: PubsubTicket | ||
) {. | ||
async: ( | ||
raises: [TransportIncompleteError, TransportError, CancelledError, CatchableError] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CatchableError
has to be listed here because ticket.handler
raises it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -903,9 +965,9 @@ proc openStream*( | |||
stream.flags.incl(Outbound) | |||
stream.transp = transp | |||
result = stream | |||
except CatchableError as exc: | |||
except ResultError[ProtoError]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL about this type of errors
CatchableError
in this PR where listed becauseP2PStreamCallback
had it listed before in #1233 effort.part of #962 effort.