mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 16:56:48 +00:00
43 lines
749 B
C++
43 lines
749 B
C++
#pragma once
|
|
|
|
#include <system_error>
|
|
|
|
namespace xrpl::cryptoconditions {
|
|
|
|
enum class Error {
|
|
Generic = 1,
|
|
UnsupportedType,
|
|
UnsupportedSubtype,
|
|
UnknownType,
|
|
UnknownSubtype,
|
|
FingerprintSize,
|
|
IncorrectEncoding,
|
|
TrailingGarbage,
|
|
BufferEmpty,
|
|
BufferOverfull,
|
|
BufferUnderfull,
|
|
MalformedEncoding,
|
|
ShortPreamble,
|
|
UnexpectedTag,
|
|
LongTag,
|
|
LargeSize,
|
|
PreimageTooLong
|
|
};
|
|
|
|
std::error_code
|
|
make_error_code(Error ev);
|
|
|
|
} // namespace xrpl::cryptoconditions
|
|
|
|
namespace std {
|
|
|
|
template <>
|
|
struct is_error_code_enum<xrpl::cryptoconditions::Error>
|
|
{
|
|
explicit is_error_code_enum() = default;
|
|
|
|
static bool const value = true; // NOLINT(readability-identifier-naming)
|
|
};
|
|
|
|
} // namespace std
|