rippled
Loading...
Searching...
No Matches
xrpld
conditions
detail
error.h
1
//------------------------------------------------------------------------------
2
/*
3
This file is part of rippled: https://github.com/ripple/rippled
4
Copyright (c) 2016 Ripple Labs Inc.
5
6
Permission to use, copy, modify, and/or distribute this software for any
7
purpose with or without fee is hereby granted, provided that the above
8
copyright notice and this permission notice appear in all copies.
9
10
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
*/
18
//==============================================================================
19
20
#ifndef RIPPLE_CONDITIONS_ERROR_H
21
#define RIPPLE_CONDITIONS_ERROR_H
22
23
#include <
system_error
>
24
25
namespace
ripple
{
26
namespace
cryptoconditions {
27
28
enum class
error
{
29
generic
= 1,
30
unsupported_type
,
31
unsupported_subtype
,
32
unknown_type
,
33
unknown_subtype
,
34
fingerprint_size
,
35
incorrect_encoding
,
36
trailing_garbage
,
37
buffer_empty
,
38
buffer_overfull
,
39
buffer_underfull
,
40
malformed_encoding
,
41
short_preamble
,
42
unexpected_tag
,
43
long_tag
,
44
large_size
,
45
preimage_too_long
46
};
47
48
std::error_code
49
make_error_code
(
error
ev);
50
51
}
// namespace cryptoconditions
52
}
// namespace ripple
53
54
namespace
std
{
55
56
template
<>
57
struct
is_error_code_enum<ripple::cryptoconditions::error>
58
{
59
explicit
is_error_code_enum
() =
default
;
60
61
static
bool
const
value =
true
;
62
};
63
64
}
// namespace std
65
66
#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:130
ripple::cryptoconditions::error
error
Definition
error.h:28
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:25
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