rippled
Loading...
Searching...
No Matches
xrpld
conditions
detail
error.h
1
#ifndef XRPL_CONDITIONS_ERROR_H
2
#define XRPL_CONDITIONS_ERROR_H
3
4
#include <
system_error
>
5
6
namespace
ripple
{
7
namespace
cryptoconditions {
8
9
enum class
error
{
10
generic
= 1,
11
unsupported_type
,
12
unsupported_subtype
,
13
unknown_type
,
14
unknown_subtype
,
15
fingerprint_size
,
16
incorrect_encoding
,
17
trailing_garbage
,
18
buffer_empty
,
19
buffer_overfull
,
20
buffer_underfull
,
21
malformed_encoding
,
22
short_preamble
,
23
unexpected_tag
,
24
long_tag
,
25
large_size
,
26
preimage_too_long
27
};
28
29
std::error_code
30
make_error_code
(
error
ev);
31
32
}
// namespace cryptoconditions
33
}
// namespace ripple
34
35
namespace
std
{
36
37
template
<>
38
struct
is_error_code_enum<ripple::cryptoconditions::error>
39
{
40
explicit
is_error_code_enum
() =
default
;
41
42
static
bool
const
value =
true
;
43
};
44
45
}
// namespace std
46
47
#endif
std::error_code
std::is_error_code_enum
ripple::cryptoconditions::make_error_code
std::error_code make_error_code(error ev)
Definition
error.cpp:111
ripple::cryptoconditions::error
error
Definition
error.h:9
ripple::cryptoconditions::error::malformed_encoding
@ malformed_encoding
ripple::cryptoconditions::error::buffer_overfull
@ buffer_overfull
ripple::cryptoconditions::error::unsupported_type
@ unsupported_type
ripple::cryptoconditions::error::short_preamble
@ short_preamble
ripple::cryptoconditions::error::trailing_garbage
@ trailing_garbage
ripple::cryptoconditions::error::unexpected_tag
@ unexpected_tag
ripple::cryptoconditions::error::unknown_subtype
@ unknown_subtype
ripple::cryptoconditions::error::unsupported_subtype
@ unsupported_subtype
ripple::cryptoconditions::error::long_tag
@ long_tag
ripple::cryptoconditions::error::buffer_empty
@ buffer_empty
ripple::cryptoconditions::error::fingerprint_size
@ fingerprint_size
ripple::cryptoconditions::error::buffer_underfull
@ buffer_underfull
ripple::cryptoconditions::error::unknown_type
@ unknown_type
ripple::cryptoconditions::error::preimage_too_long
@ preimage_too_long
ripple::cryptoconditions::error::incorrect_encoding
@ incorrect_encoding
ripple::cryptoconditions::error::large_size
@ large_size
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:6
std
STL namespace.
std::is_error_code_enum< ripple::cryptoconditions::error >::is_error_code_enum
is_error_code_enum()=default
system_error
Generated by
1.9.8