PMDA++
0.4.4
Header-only C++ library for writing PCP PMDAs
|
Base class for all PMDA++ exceptions. More...
#include <exception.hpp>
Public Member Functions | |
exception (const int pm_error_code, const std::string &message=std::string()) | |
Constructor. More... | |
exception (const pcp::exception &other) | |
Copy constructor. More... | |
virtual | ~exception () throw () |
Virtual destructor. More... | |
virtual int | error_code () const |
Get this exception's error code. More... | |
virtual const char * | what () const throw () |
Get this exception's error message. More... | |
Protected Attributes | |
int | pm_error_code |
PCP error code. More... | |
std::string | message |
Error message. More... | |
Base class for all PMDA++ exceptions.
Definition at line 25 of file exception.hpp.
|
inline |
Constructor.
If the optional message is not provided (or is empty), then either pmErrStr_r (if available) or pmErrStr will be used to fetch PCP's message for pm_error_code.
pm_error_code | PCP error code. |
message | Error message. |
Definition at line 42 of file exception.hpp.
References message.
|
inline |
Copy constructor.
other | Other pcp::exception object to copy. |
Definition at line 63 of file exception.hpp.
|
inlinevirtual |
|
inlinevirtual |
Get this exception's error code.
Definition at line 82 of file exception.hpp.
References pm_error_code.
Referenced by pcp::pmda::on_fetch(), pcp::pmda::on_fetch_callback(), pcp::pmda::on_store(), and pcp::pmda::on_text().
|
inlinevirtual |
Get this exception's error message.
Definition at line 92 of file exception.hpp.
References message.
Referenced by pcp::pmda::on_fetch(), pcp::pmda::on_fetch_callback(), pcp::pmda::on_store(), and pcp::pmda::on_text().
|
protected |
|
protected |