PahoMqttCpp
MQTT C++ Client for POSIX and Windows
Loading...
Searching...
No Matches
mqtt::persistence_exception Class Reference

#include <exception.h>

Inheritance diagram for mqtt::persistence_exception:
mqtt::exception

Public Member Functions

 persistence_exception ()
 
 persistence_exception (int code)
 
 persistence_exception (const string &msg)
 
 persistence_exception (int code, const string &msg)
 
- Public Member Functions inherited from mqtt::exception
 exception (int rc)
 
 exception (int rc, ReasonCode reasonCode)
 
 exception (int rc, const string &msg)
 
 exception (int rc, ReasonCode reasonCode, const string &msg)
 
int get_return_code () const
 
string get_error_str () const
 
int get_reason_code () const
 
string get_reason_code_str () const
 
string get_message () const
 
string to_string () const
 

Additional Inherited Members

- Static Public Member Functions inherited from mqtt::exception
static string error_str (int rc)
 
static string reason_code_str (int reasonCode)
 
static string printable_error (int rc, ReasonCode reasonCode=ReasonCode::SUCCESS, const string &msg=string())
 
- Static Protected Member Functions inherited from mqtt::exception
static ReasonCode reason_code (int rc, ReasonCode reasonCode)
 
- Protected Attributes inherited from mqtt::exception
int rc_
 
ReasonCode reasonCode_
 
string msg_
 

Detailed Description

This exception is thrown by the implementor of the persistence interface if there is a problem reading or writing persistent data.

Constructor & Destructor Documentation

◆ persistence_exception() [1/4]

mqtt::persistence_exception::persistence_exception ( )
inline

Creates an MQTT persistence exception.

◆ persistence_exception() [2/4]

mqtt::persistence_exception::persistence_exception ( int code)
inlineexplicit

Creates an MQTT persistence exception.

Parameters
codeThe error code from the C library.

◆ persistence_exception() [3/4]

mqtt::persistence_exception::persistence_exception ( const string & msg)
inlineexplicit

Creates an MQTT persistence exception.

Parameters
msgThe text message for the error.

◆ persistence_exception() [4/4]

mqtt::persistence_exception::persistence_exception ( int code,
const string & msg )
inline

Creates an MQTT persistence exception.

Parameters
codeThe error code
msgThe text message for the error.

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