You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
bkeryan
changed the title
grpc-labview ought to make better use of C++ exceptions. Instead of duplicating these checks in each exported function, the checks could be single-sourced:
grpc-labview ought to make better use of C++ exceptions
May 6, 2025
The feature toggle code would also benefit from being able to use C++ exceptions to report errors. Currently it ignores errors from
opening std::ifstream, GetModuleHandle, etc. It makes sense to ignore file-not-found when using the default feature toggle file path, but other errors ought to be reported to the caller.
Uh oh!
There was an error while loading. Please reload this page.
The grpc-labview C++ codebase has a lot of duplicated error handling, and #436 adds more.
Instead of duplicating checks for failed casts, etc. in each exported function, the checks could be single-sourced:
CastTo
to throw an exception with the appropriate error code when it failsTryCastTo
method for use cases that require casting to null, and update callers to use it when appropriate.The code already does some of this, but only for invalid enum values.
Originally posted by @bkeryan in #436 (comment)
AB#3117529
The text was updated successfully, but these errors were encountered: