Monero C++ Library
Loading...
Searching...
No Matches
monero::monero_rpc_error Class Reference

#include <monero_error.h>

Inheritance diagram for monero::monero_rpc_error:
monero::monero_error

Public Member Functions

 monero_rpc_error (int error_code, const std::string &msg)
 
 monero_rpc_error (const std::string &msg)
 
- Public Member Functions inherited from monero::monero_error
 monero_error (const std::string &msg)
 
const char * what () const noexcept override
 

Public Attributes

int code
 
- Public Attributes inherited from monero::monero_error
std::string message
 

Detailed Description

Exception when interacting with the Monero daemon or wallet RPC API.

Constructor & Destructor Documentation

◆ monero_rpc_error() [1/2]

monero::monero_rpc_error::monero_rpc_error ( int error_code,
const std::string & msg )
inline

Construct the exception.

Parameters
error_codeis the error code (optional)
msgis a human-readable description of the error

◆ monero_rpc_error() [2/2]

monero::monero_rpc_error::monero_rpc_error ( const std::string & msg)
inline

Construct the exception.

Parameters
msgis a human-readable description of the error

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