rippled
ripple
conditions
impl
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 <
string
>
24
#include <
system_error
>
25
26
namespace
ripple
{
27
namespace
cryptoconditions {
28
29
enum class
error
{
30
generic
= 1,
31
unsupported_type
,
32
unsupported_subtype
,
33
unknown_type
,
34
unknown_subtype
,
35
fingerprint_size
,
36
incorrect_encoding
,
37
trailing_garbage
,
38
buffer_empty
,
39
buffer_overfull
,
40
buffer_underfull
,
41
malformed_encoding
,
42
short_preamble
,
43
unexpected_tag
,
44
long_tag
,
45
large_size
,
46
preimage_too_long
47
};
48
49
std::error_code
50
make_error_code
(
error
ev);
51
52
}
// namespace cryptoconditions
53
}
// namespace ripple
54
55
namespace
std
{
56
57
template
<>
58
struct
is_error_code_enum<ripple::cryptoconditions::error>
59
{
60
explicit
is_error_code_enum
() =
default
;
61
62
static
bool
const
value =
true
;
63
};
64
65
}
// namespace std
66
67
#endif
ripple::cryptoconditions::error::buffer_empty
@ buffer_empty
ripple::cryptoconditions::error::unsupported_subtype
@ unsupported_subtype
system_error
ripple::cryptoconditions::error::fingerprint_size
@ fingerprint_size
ripple::cryptoconditions::error::incorrect_encoding
@ incorrect_encoding
std::error_code
STL class.
ripple::cryptoconditions::error::short_preamble
@ short_preamble
ripple::cryptoconditions::error::unknown_subtype
@ unknown_subtype
ripple::cryptoconditions::error::buffer_underfull
@ buffer_underfull
std::is_error_code_enum< ripple::cryptoconditions::error >
Definition:
error.h:58
ripple::cryptoconditions::make_error_code
std::error_code make_error_code(error ev)
Definition:
error.cpp:130
ripple::cryptoconditions::error::unexpected_tag
@ unexpected_tag
std::is_error_code_enum
ripple::cryptoconditions::error::unknown_type
@ unknown_type
ripple::cryptoconditions::error::preimage_too_long
@ preimage_too_long
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition:
RCLCensorshipDetector.h:29
ripple::cryptoconditions::error::long_tag
@ long_tag
std
STL namespace.
ripple::cryptoconditions::error::buffer_overfull
@ buffer_overfull
ripple::cryptoconditions::error::large_size
@ large_size
ripple::cryptoconditions::error::trailing_garbage
@ trailing_garbage
ripple::cryptoconditions::error::malformed_encoding
@ malformed_encoding
ripple::cryptoconditions::error::unsupported_type
@ unsupported_type
ripple::cryptoconditions::error
error
Definition:
error.h:29
string
Generated by
1.8.17