-
I would like to return errors from my get / set property functions. I'm using the IDL generated Adaptor classes, but I can't see any way to return an error state from those. Am I missing something? It would be great if I could for instance throw an sdbus::Error in the getter / setter, and have sdbus translate that into an error response. |
Beta Was this translation helpful? Give feedback.
Answered by
Maddimax
Jan 31, 2022
Replies: 1 comment 1 reply
-
Nevermind, I found that "SDBUS_THROW_ERROR" does the trick. Maybe documenting that makes sense? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Maddimax
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nevermind, I found that "SDBUS_THROW_ERROR" does the trick. Maybe documenting that makes sense?