An exception class used by G::Pam. More...
#include <gpam.h>
Public Member Functions | |
Error (const std::string &op, int pam_error) | |
Error (const std::string &op, int pam_error, const char *) | |
![]() | |
Exception () | |
Default constructor. More... | |
Exception (const char *what) | |
Constructor. More... | |
Exception (const std::string &what) | |
Constructor. More... | |
Exception (const char *what, const std::string &more) | |
Constructor. More... | |
Exception (const std::string &what, const std::string &more) | |
Constructor. More... | |
Exception (const std::string &what, const std::string &more1, const std::string &more2) | |
Constructor. More... | |
virtual | ~Exception () throw () |
Destructor. More... | |
virtual const char * | what () const throw () |
Override from std::exception. More... | |
void | prepend (const char *context) |
Prepends context to the what string. More... | |
void | append (const char *more) |
Appends 'more' to the what string. More... | |
void | append (const std::string &more) |
Appends 'more' to the what string. More... | |
Public Attributes | |
int | m_pam_error |
Additional Inherited Members | |
![]() | |
std::string | m_what |
G::Pam::Error::Error | ( | const std::string & | op, |
int | pam_error | ||
) |
Definition at line 27 of file gpam.cpp.
References G::Exception::append(), G::Str::fromInt(), G_DEBUG, and G::Exception::m_what.
G::Pam::Error::Error | ( | const std::string & | op, |
int | pam_error, | ||
const char * | more | ||
) |
Definition at line 36 of file gpam.cpp.
References G::Exception::append(), G::Str::fromInt(), G_DEBUG, and G::Exception::m_what.