diff options
author | Jack Lloyd <[email protected]> | 2017-10-02 23:45:00 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-10-02 23:45:00 -0400 |
commit | 4b783316693c8ef2e36a1d97f3dff06c9aea8f79 (patch) | |
tree | e793e123ea5d0c1085a028dfb7aa60b11e338701 /src/lib | |
parent | f9090ec68986d297fd4cfd97bf75521df8f38aff (diff) |
Use class for exception types
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/math/bigint/bigint.h | 7 | ||||
-rw-r--r-- | src/lib/x509/x509_crl.h | 7 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/lib/math/bigint/bigint.h b/src/lib/math/bigint/bigint.h index 2dabd43a5..e6015b7b3 100644 --- a/src/lib/math/bigint/bigint.h +++ b/src/lib/math/bigint/bigint.h @@ -38,8 +38,11 @@ class BOTAN_PUBLIC_API(2,0) BigInt final /** * DivideByZero Exception */ - struct BOTAN_PUBLIC_API(2,0) DivideByZero final : public Exception - { DivideByZero() : Exception("BigInt divide by zero") {} }; + class BOTAN_PUBLIC_API(2,0) DivideByZero final : public Exception + { + public: + DivideByZero() : Exception("BigInt divide by zero") {} + }; /** * Create empty BigInt diff --git a/src/lib/x509/x509_crl.h b/src/lib/x509/x509_crl.h index 0e70b3f2b..865117300 100644 --- a/src/lib/x509/x509_crl.h +++ b/src/lib/x509/x509_crl.h @@ -27,10 +27,11 @@ class BOTAN_PUBLIC_API(2,0) X509_CRL final : public X509_Object /** * This class represents CRL related errors. */ - struct BOTAN_PUBLIC_API(2,0) X509_CRL_Error final : public Exception + class BOTAN_PUBLIC_API(2,0) X509_CRL_Error final : public Exception { - explicit X509_CRL_Error(const std::string& error) : - Exception("X509_CRL: " + error) {} + public: + explicit X509_CRL_Error(const std::string& error) : + Exception("X509_CRL: " + error) {} }; /** |