Skip to content

Commit

Permalink
feat: make inheritance of exceptions public (#151)
Browse files Browse the repository at this point in the history
Signed-off-by: William Michaels <[email protected]>
  • Loading branch information
PolBreachIty authored Sep 23, 2021
1 parent 8891fa9 commit 97b620e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion casbin/exception/casbin_adapter_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
namespace casbin {

// Exception class for Casbin Adapter Exception.
class CasbinAdapterException : std::logic_error {
class CasbinAdapterException : public std::logic_error {
public:
using std::logic_error::logic_error;
};
Expand Down
2 changes: 1 addition & 1 deletion casbin/exception/casbin_enforcer_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
namespace casbin {

// Exception class for Casbin Enforcer Exception.
class CasbinEnforcerException : std::runtime_error {
class CasbinEnforcerException : public std::runtime_error {
public:
using std::runtime_error::runtime_error;
};
Expand Down
2 changes: 1 addition & 1 deletion casbin/exception/casbin_rbac_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
namespace casbin {

// Exception class for Casbin Adapter Exception.
class CasbinRBACException : std::invalid_argument {
class CasbinRBACException : public std::invalid_argument {
public:
using std::invalid_argument::invalid_argument;
};
Expand Down
2 changes: 1 addition & 1 deletion casbin/exception/illegal_argument_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
namespace casbin {

// Exception class for illegal arguments.
class IllegalArgumentException : std::invalid_argument {
class IllegalArgumentException : public std::invalid_argument {
public:
using std::invalid_argument::invalid_argument;
};
Expand Down
2 changes: 1 addition & 1 deletion casbin/exception/io_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
namespace casbin {

// Exception class for I/O operations.
class IOException : std::runtime_error {
class IOException : public std::runtime_error {
public:
using std::runtime_error::runtime_error;
};
Expand Down
2 changes: 1 addition & 1 deletion casbin/exception/missing_required_sections.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
namespace casbin {

// Exception class for missing required sections.
class MissingRequiredSections : std::domain_error {
class MissingRequiredSections : public std::domain_error {
public:
using std::domain_error::domain_error;
};
Expand Down
2 changes: 1 addition & 1 deletion casbin/exception/unsupported_operation_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
namespace casbin {

// Exception class for unsupported operations.
class UnsupportedOperationException : std::logic_error {
class UnsupportedOperationException : public std::logic_error {
public:
using std::logic_error::logic_error;
};
Expand Down

0 comments on commit 97b620e

Please sign in to comment.