userver: userver/crypto/exception.hpp Source File
Loading...
Searching...
No Matches
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
16public:
17 using utils::TracefulException::TracefulException;
18};
19
20/// Signature generation error
21class SignError : public CryptoException {
22public:
23 using CryptoException::CryptoException;
24};
25
26/// Signature verification error
28public:
29 using CryptoException::CryptoException;
30};
31
32/// Signing key parse error
34public:
35 using CryptoException::CryptoException;
36};
37
38/// Serialization error
40public:
41 using CryptoException::CryptoException;
42};
43
44} // namespace crypto
45
46USERVER_NAMESPACE_END