DBus::Error Class Reference

Base class of a hierarchy of error objects thrown when exceptional conditions occur. More...

#include <error.h>

Inheritance diagram for DBus::Error:

Public Member Functions

 Error ()
 
 Error (const char *name, const char *message=nullptr)
 
 Error (const char *name, std::string message)
 
 Error (std::string name, std::string message)
 
 ~Error () noexcept
 
const char * what () const noexcept
 
std::string name () const
 
std::string message () const
 

Protected Attributes

std::string m_name
 
std::string m_message
 

Detailed Description

Base class of a hierarchy of error objects thrown when exceptional conditions occur.

Author
Rick L Vinyard Jr rviny.nosp@m.ard@.nosp@m.cs.nm.nosp@m.su.e.nosp@m.du

Constructor & Destructor Documentation

◆ Error() [1/4]

DBus::Error::Error ( )

◆ Error() [2/4]

DBus::Error::Error ( const char *  name,
const char *  message = nullptr 
)

References m_message, m_name, message(), and name().

◆ Error() [3/4]

DBus::Error::Error ( const char *  name,
std::string  message 
)

References m_message, m_name, message(), and name().

◆ Error() [4/4]

DBus::Error::Error ( std::string  name,
std::string  message 
)

References m_message, m_name, message(), and name().

◆ ~Error()

DBus::Error::~Error ( )
noexcept

Member Function Documentation

◆ message()

std::string DBus::Error::message ( ) const

References m_message.

Referenced by Error().

◆ name()

std::string DBus::Error::name ( ) const

References m_name.

Referenced by Error().

◆ what()

const char * DBus::Error::what ( ) const
noexcept

References m_message.

Member Data Documentation

◆ m_message

std::string DBus::Error::m_message
protected

Referenced by Error(), message(), and what().

◆ m_name

std::string DBus::Error::m_name
protected

Referenced by Error(), and name().


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