plugin  2.1.3
Runtime plugin loader and Ed25519 DSO signing for C++ applications
fedem::exception::Exception Class Referenceabstract

#include <Exception.hh>

+ Inheritance diagram for fedem::exception::Exception:
+ Collaboration diagram for fedem::exception::Exception:

Public Member Functions

 Exception () noexcept
 
 Exception (Exception const &) noexcept
 
 ~Exception () noexcept override
 
Exceptionoperator= (Exception const &) noexcept
 
virtual std::string const description () const noexcept
 
virtual std::string whatStr () const noexcept=0
 
char const * what () const noexcept override
 
std::string filename () const noexcept
 
void filename (std::string const &fname) noexcept
 
unsigned long lineNumber () const noexcept
 
void lineNumber (unsigned long lineNo) noexcept
 

Private Attributes

std::string exceptionFilename
 
unsigned long exceptionLineNumber
 
std::string exceptionDescription
 

Detailed Description

Exception is the base class for all exceptions in the library.

Constructor & Destructor Documentation

◆ Exception() [1/2]

fedem::exception::Exception::Exception ( )
noexcept

◆ Exception() [2/2]

fedem::exception::Exception::Exception ( Exception const &  e)
noexcept

◆ ~Exception()

fedem::exception::Exception::~Exception ( )
overridedefaultnoexcept

Member Function Documentation

◆ operator=()

Exception & fedem::exception::Exception::operator= ( Exception const &  e)
noexcept

◆ description()

std::string const fedem::exception::Exception::description ( ) const
virtualnoexcept

Returns a formatted description of the exception.

References fedem::exception::descriptionHead(), fedem::exception::descriptionOptional(), filename(), lineNumber(), and whatStr().

+ Here is the call graph for this function:

◆ whatStr()

virtual std::string fedem::exception::Exception::whatStr ( ) const
pure virtualnoexcept

Returns the exception message as a string (pure virtual).

Implemented in fedem::exception::SignatureRejected, and fedem::exception::FileNotFound.

Referenced by description(), and what().

+ Here is the caller graph for this function:

◆ what()

char const * fedem::exception::Exception::what ( ) const
overridenoexcept

Returns the exception message as a C string.

References exceptionDescription, and whatStr().

+ Here is the call graph for this function:

◆ filename() [1/2]

std::string fedem::exception::Exception::filename ( ) const
noexcept

Returns the source filename where the exception was thrown. If NDEBUG is defined, returns an empty string.

References exceptionFilename.

Referenced by description().

+ Here is the caller graph for this function:

◆ filename() [2/2]

void fedem::exception::Exception::filename ( std::string const &  fname)
noexcept

Sets the source filename.

◆ lineNumber() [1/2]

unsigned long fedem::exception::Exception::lineNumber ( ) const
noexcept

Returns the line number where the exception was thrown. If NDEBUG is defined, returns zero.

References exceptionLineNumber.

Referenced by description().

+ Here is the caller graph for this function:

◆ lineNumber() [2/2]

void fedem::exception::Exception::lineNumber ( unsigned long  lineNo)
noexcept

Sets the line number.

Member Data Documentation

◆ exceptionFilename

std::string fedem::exception::Exception::exceptionFilename
private

Referenced by filename().

◆ exceptionLineNumber

unsigned long fedem::exception::Exception::exceptionLineNumber
private

Referenced by lineNumber().

◆ exceptionDescription

std::string fedem::exception::Exception::exceptionDescription
mutableprivate

Referenced by what().


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