-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
I've got a quick question about the varlink generated error types. Take this generated code for example:
pub enum ErrorKind {
Varlink_Error,
VarlinkReply_Error,
Error(Option<Error_Args>),
HookFailed(Option<HookFailed_Args>),
}I have two user-defined errors in my .varlink file: Error, and HookFailed. My question is, why are the error arguments inside of an Option? According to the varlink definition, the error must have the arguments that I have defined, so in what cases would the error Arguments be None? I'm mostly trying to figure out if a None value in this case should be a panic, or whether or not that can happen in normal operation.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels