-
Notifications
You must be signed in to change notification settings - Fork 15
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
[Question] Overriding Display for Error Types? #31
Comments
As a related note, the reason I'm trying to figure this out is because I want to override the |
Option<Error_Args>
?
Hmm, easiest thing would be a generator option specifying not to generate the Display trait. |
The way I did it was I replaced the generated implementation with an |
That would be useful for other traits too. I just tripped over the |
I've got a quick question about the varlink generated error types. Take this generated code for example:
I have two user-defined errors in my
.varlink
file:Error
, andHookFailed
. My question is, why are the error arguments inside of anOption
? According to the varlink definition, the error must have the arguments that I have defined, so in what cases would the error Arguments beNone
? I'm mostly trying to figure out if aNone
value in this case should be a panic, or whether or not that can happen in normal operation.The text was updated successfully, but these errors were encountered: