Skip to content

Commit

Permalink
Fix inheritance for ComponentException (#676)
Browse files Browse the repository at this point in the history
Not inheriting through public inheritance means that this exception type can't be caught by the std::exception nor std::runtime_error types in a catch.

Signed-off-by: The MathWorks, Inc. <jdicleme@mathworks.com>

Co-authored-by: Jeff <DiClemente>
  • Loading branch information
jeffdiclemente committed May 24, 2022
1 parent d9f4d5c commit 2adce66
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace component {
*
* Exception which may be thrown by Service Component Runtime.
*/
class US_ServiceComponent_EXPORT ComponentException final : std::runtime_error
class US_ServiceComponent_EXPORT ComponentException final : public std::runtime_error
{
public:
/**
Expand Down

0 comments on commit 2adce66

Please sign in to comment.