Paho C++  1.0
The Paho MQTT C++ Client Library
 All Classes Files Functions Variables Typedefs Friends
mqtt::persistence_exception Class Reference

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

#include <exception.h>

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

Public Member Functions

 persistence_exception ()
 Creates an MQTT persistence exception.
 
 persistence_exception (int code)
 Creates an MQTT persistence exception. More...
 
 persistence_exception (const string &msg)
 Creates an MQTT persistence exception. More...
 
 persistence_exception (int code, const string &msg)
 Creates an MQTT persistence exception. More...
 
- Public Member Functions inherited from mqtt::exception
 exception (int code)
 Creates an MQTT exception. More...
 
 exception (int code, const string &msg)
 Creates an MQTT exception. More...
 
string get_message () const
 Returns the error message for this exception.
 
int get_reason_code () const
 Returns the reason code for this exception.
 
string to_string () const
 Gets a string representation of this exception. More...
 

Additional Inherited Members

- Protected Attributes inherited from mqtt::exception
int code_
 The error code from the C library.
 
string msg_
 The error message from the C library.
 

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

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

Creates an MQTT persistence exception.

Parameters
codeThe error code from the C library.
mqtt::persistence_exception::persistence_exception ( const string &  msg)
inlineexplicit

Creates an MQTT persistence exception.

Parameters
msgThe text message for the error.
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: