parselink-old/include/parselink/msgpack/core/error.h

38 lines
1.4 KiB
C++

//-----------------------------------------------------------------------------
// ___ __ _ _
// / _ \__ _ _ __ ___ ___ / /(_)_ __ | | __
// / /_)/ _` | '__/ __|/ _ \/ / | | '_ \| |/ /
// / ___/ (_| | | \__ \ __/ /__| | | | | <
// \/ \__,_|_| |___/\___\____/_|_| |_|_|\_\ .
//
//-----------------------------------------------------------------------------
// Author: Kurt Sassenrath
// Module: msgpack
//
// Error codes for various MessagePack operations.
//
// Copyright (c) 2023 Kurt Sassenrath.
//
// License TBD.
//-----------------------------------------------------------------------------
#ifndef msgpack_error_3fae420b0427164e
#define msgpack_error_3fae420b0427164e
namespace msgpack {
enum class error {
not_implemented, // Feature not implemented.
unsupported, // Feature not supported with current configuration.
end_of_message, // End of the buffer has been reached.
incomplete_message, // Insufficient data in buffer to read a format.
out_of_space, // Insufficient buffer to write a format.
wrong_type, // The format is incompatible with requested type.
bad_value, // Value does not fit within constraints.
will_truncate, // Integer return type is smaller than stored value.
wrong_length, // Variable-length format does not match desired length.
};
} // namespace msgpack
#endif // msgpack_error_3fae420b0427164e