AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::rest::RpcError Class Reference

#include <rpcService.hpp>

Inheritance diagram for anch::rest::RpcError:
Collaboration diagram for anch::rest::RpcError:

Public Member Functions

 RpcError (anch::rest::RpcCode code, const std::string &message=std::string())
anch::rest::RpcCode getCode () const noexcept

Detailed Description

RPC error: raised by RPC handlers (sent to the client with its code and message) and by RPC clients

Author
Vincent Lachenal
Since
0.2

Constructor & Destructor Documentation

◆ RpcError()

anch::rest::RpcError::RpcError ( anch::rest::RpcCode code,
const std::string & message = std::string() )

RpcError constructor

Parameters
codethe status code
messagethe message (sent to the client)
Here is the call graph for this function:

Member Function Documentation

◆ getCode()

anch::rest::RpcCode anch::rest::RpcError::getCode ( ) const
noexcept

Get status code

Returns
the code

The documentation for this class was generated from the following file: