diff --git a/casbin/exception/casbin_adapter_exception.h b/casbin/exception/casbin_adapter_exception.h index e2c9e8f9..57646089 100644 --- a/casbin/exception/casbin_adapter_exception.h +++ b/casbin/exception/casbin_adapter_exception.h @@ -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; }; diff --git a/casbin/exception/casbin_enforcer_exception.h b/casbin/exception/casbin_enforcer_exception.h index c6b5faa9..cc4d056a 100644 --- a/casbin/exception/casbin_enforcer_exception.h +++ b/casbin/exception/casbin_enforcer_exception.h @@ -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; }; diff --git a/casbin/exception/casbin_rbac_exception.h b/casbin/exception/casbin_rbac_exception.h index 48b01b64..d5d7d83f 100644 --- a/casbin/exception/casbin_rbac_exception.h +++ b/casbin/exception/casbin_rbac_exception.h @@ -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; }; diff --git a/casbin/exception/illegal_argument_exception.h b/casbin/exception/illegal_argument_exception.h index 61efb403..3876bb12 100644 --- a/casbin/exception/illegal_argument_exception.h +++ b/casbin/exception/illegal_argument_exception.h @@ -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; }; diff --git a/casbin/exception/io_exception.h b/casbin/exception/io_exception.h index 95c88ed1..d1863ea1 100644 --- a/casbin/exception/io_exception.h +++ b/casbin/exception/io_exception.h @@ -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; }; diff --git a/casbin/exception/missing_required_sections.h b/casbin/exception/missing_required_sections.h index 2747b9d4..9136b296 100644 --- a/casbin/exception/missing_required_sections.h +++ b/casbin/exception/missing_required_sections.h @@ -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; }; diff --git a/casbin/exception/unsupported_operation_exception.h b/casbin/exception/unsupported_operation_exception.h index cd5032ae..978866cb 100644 --- a/casbin/exception/unsupported_operation_exception.h +++ b/casbin/exception/unsupported_operation_exception.h @@ -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; };