52 void append(std::unique_ptr<IMethod> method)
override {
61 }
catch (
const std::exception& e) {
65 request.
id(), e.what());
73 }
catch (
const std::exception& e) {
75 "Error when notifying to a method {}: {}",
static SerializedMessage serialize_error_response(MessageID request_id, const T &error)
Serialize an error response.
Class of parsed notification.
MethodNameView method_name() const noexcept
Get the method name.
Class of parsed requests.
MethodNameView method_name() const noexcept
Get the method name.
MessageID id() const noexcept
Get the message ID.
Class of serialized message data.
Class of dictionaries of methods.
void notify(const messages::ParsedNotification ¬ification) override
Notify a method.
std::shared_ptr< logging::Logger > logger_
Logger.
MethodDict methods_
Dictionary of methods.
MethodProcessor(std::shared_ptr< logging::Logger > logger)
Constructor.
void append(std::unique_ptr< IMethod > method) override
Append a method.
messages::SerializedMessage call(const messages::ParsedRequest &request) override
Call a method.
Definition of IMethod class.
Definition of IMethodProcessor class.
Definition of Logger class.
#define MSGPACK_RPC_DEBUG(LOGGER_PTR,...)
Write a debug log.
Definition of MessageSerializer class.
Definition of MethodDict class.
Definition of MethodNameView class.
Namespace of methods in MessagePack-RPC.
Definition of ParsedNotification class.
Definition of ParsedRequest class.
Definition of SerializedMessage class.