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
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} // namespace crypto
39
40USERVER_NAMESPACE_END