Class of exceptions in methods.
More...
#include <msgpack_rpc/methods/method_exception.h>
|
| msgpack::object | object_ |
| | Object in msgpack library.
|
| std::shared_ptr< msgpack::zone > | zone_ |
| | Zone in msgpack library.
|
Class of exceptions in methods.
- Note
- Methods can throw this exception to notify errors using any serializable objects.
- Examples
- more_server.cpp.
Definition at line 39 of file method_exception.h.
◆ MethodException()
template<typename T>
| msgpack_rpc::methods::MethodException::MethodException |
( |
T && | object, |
|
|
std::enable_if_t<!std::is_same_v< std::decay_t< T >, MethodException >, void * > | = nullptr ) |
|
inlineexplicit |
Constructor.
- Template Parameters
-
| T | Object specifying the error. |
- Parameters
-
| object | Object specifying the error. |
- Note
- The second argument is for SFINAE, so the second argument should be left unspecified.
Definition at line 54 of file method_exception.h.
◆ object()
| const msgpack::object & msgpack_rpc::methods::MethodException::object |
( |
| ) |
const |
|
nodiscardnoexcept |
Get the object in msgpack library.
- Returns
- Object in msgpack library.
Definition at line 24 of file method_exception.cpp.
◆ operator=() [1/2]
Copy assignment operator.
- Returns
- This.
◆ operator=() [2/2]
Move assignment operator.
- Returns
- This.
◆ what()
| const char * msgpack_rpc::methods::MethodException::what |
( |
| ) |
const |
|
nodiscardoverridenoexcept |
◆ object_
| msgpack::object msgpack_rpc::methods::MethodException::object_ |
|
private |
◆ zone_
| std::shared_ptr<msgpack::zone> msgpack_rpc::methods::MethodException::zone_ |
|
private |
The documentation for this class was generated from the following files: