userver
C++ Async Framework
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
10
USERVER_NAMESPACE_BEGIN
11
12
namespace
crypto {
13
14
/// Base exception
15
class
CryptoException
:
public
utils
::TracefulException {
16
public
:
17
using
utils
::TracefulException::TracefulException;
18
19
CryptoException(
CryptoException
&&) =
default
;
20
21
~CryptoException() override;
22
};
23
24
/// Signature generation error
25
class
SignError
:
public
CryptoException
{
26
public
:
27
using
CryptoException
::CryptoException;
28
29
SignError(
SignError
&&) =
default
;
30
31
~SignError() override;
32
};
33
34
/// Signature verification error
35
class
VerificationError
:
public
CryptoException
{
36
public
:
37
using
CryptoException
::CryptoException;
38
39
VerificationError(
VerificationError
&&) =
default
;
40
41
~VerificationError() override;
42
};
43
44
/// Signing key parse error
45
class
KeyParseError
:
public
CryptoException
{
46
public
:
47
using
CryptoException
::CryptoException;
48
49
KeyParseError(
KeyParseError
&&) =
default
;
50
51
~KeyParseError() override;
52
};
53
54
/// Serialization error
55
class
SerializationError
:
public
CryptoException
{
56
public
:
57
using
CryptoException
::CryptoException;
58
59
SerializationError(
SerializationError
&&) =
default
;
60
61
~SerializationError() override;
62
};
63
64
}
// namespace crypto
65
66
USERVER_NAMESPACE_END
userver
crypto
exception.hpp
Generated on Thu May 21 2026 16:16:03 for userver by
Doxygen
1.13.2