userver: userver/crypto/exception.hpp Source File
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
exception.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/crypto/exception.hpp
4/// @brief Exception classes for crypto module
5
6#include <memory>
7
8#include <userver/utils/traceful_exception.hpp>
9
10USERVER_NAMESPACE_BEGIN
11
12namespace crypto {
13
14/// Base exception
15class CryptoException : public utils::TracefulException {
16 public:
17 using utils::TracefulException::TracefulException;
18};
19
20/// Signature generation error
21class SignError : public CryptoException {
22 public:
23 using CryptoException::CryptoException;
24};
25
26/// Signature verification error
28 public:
29 using CryptoException::CryptoException;
30};
31
32/// Signing key parse error
34 public:
35 using CryptoException::CryptoException;
36};
37
38/// Serialization error
40 public:
41 using CryptoException::CryptoException;
42};
43
44} // namespace crypto
45
46USERVER_NAMESPACE_END