28#include "msgpack_rpc/impl/msgpack_rpc_export.h"
50 msgpack::object
object, std::shared_ptr<msgpack::zone> zone);
57 [[nodiscard]]
const msgpack::object&
object()
const noexcept;
69 }
catch (
const msgpack::type_error&) {
71 StatusCode::TYPE_ERROR,
"Invalid type of the error.");
ServerException(const ServerException &) noexcept
Copy constructor.
ServerException(msgpack::object object, std::shared_ptr< msgpack::zone > zone)
Constructor.
ServerException(ServerException &&) noexcept
Move constructor.
msgpack::object object_
Object in msgpack library specifying the error.
std::shared_ptr< msgpack::zone > zone_
Zone in msgpack library.
T error_as() const
Get the error.
const msgpack::object & object() const noexcept
Get the object in msgpack library.
Class of exceptions in cpp-msgpack-rpc library.
Definition of MsgpackRPCException class.
Definition of StatusCode enumeration.