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

Thrown when a client is not authorized to perform an operation, or if there is a problem with the security configuration. More...

#include <exception.h>

Inheritance diagram for mqtt::security_exception:
mqtt::exception

Public Member Functions

 security_exception (int code)
 Creates an MQTT security exception. More...
 
 security_exception (int code, const string &msg)
 Creates an MQTT security 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

Thrown when a client is not authorized to perform an operation, or if there is a problem with the security configuration.

Constructor & Destructor Documentation

mqtt::security_exception::security_exception ( int  code)
inlineexplicit

Creates an MQTT security exception.

Parameters
codeThe error code.
mqtt::security_exception::security_exception ( int  code,
const string &  msg 
)
inline

Creates an MQTT security exception.

Parameters
codeThe error code.
msgThe text message for the error.

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