Skip to content

Conversation

@woodwan
Copy link

@woodwan woodwan commented Apr 14, 2021

ACT-generated bindings don't contain a mapping between error codes and human-readable names and descriptions. If exception text gets printed this can result in very unfriendly error messages for developers and (if a crash escapes into the wild) users.

This PR adds methods to the binding exception class to get the more human-friendly error name and description specified in the IDL file. The what() method is reworked to give a default error text with the error name and description, not the number code.

@woodwan woodwan changed the title Better error messages Better error messages (develop) Apr 14, 2021
Copy link
Collaborator

@robertgoss robertgoss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like an improvement to me that would allow better and more flexible error messages.

@alexanderoster alexanderoster merged commit d320a14 into Autodesk:develop Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants