From 97b620e8204970c4383f4833b63048af63eacc51 Mon Sep 17 00:00:00 2001 From: William Michaels <88730019+PolBreachIty@users.noreply.github.com> Date: Thu, 23 Sep 2021 11:29:50 -0500 Subject: [PATCH] feat: make inheritance of exceptions public (#151) Signed-off-by: William Michaels --- casbin/exception/casbin_adapter_exception.h | 2 +- casbin/exception/casbin_enforcer_exception.h | 2 +- casbin/exception/casbin_rbac_exception.h | 2 +- casbin/exception/illegal_argument_exception.h | 2 +- casbin/exception/io_exception.h | 2 +- casbin/exception/missing_required_sections.h | 2 +- casbin/exception/unsupported_operation_exception.h | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) 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; };