lightningbolt/lib/bolt/Errors.hpp

20 lines
379 B
C++
Raw Permalink Normal View History

#pragma once
#include <base/Types.hpp>
namespace lightningbolt {
/// Error codes for BOLT
enum class BoltErrc {
InvalidMagic = 1,
DecompressionError
};
} // namespace lightningbolt
namespace std {
template <>
struct is_error_code_enum<::lightningbolt::BoltErrc> : true_type {};
std::error_code make_error_code(::lightningbolt::BoltErrc errc);
} // namespace std