palimpsest v3.0.0
Loading...
Searching...
No Matches
palimpsest::exceptions::PalimpsestError Class Reference

Error with file and line references to the calling code. More...

#include <PalimpsestError.h>

Public Member Functions

 PalimpsestError (const std::string &file, unsigned line, const std::string &message)
 Create a new error. More...
 
 PalimpsestError (const PalimpsestError &other, const std::string &extra_message)
 Copy an existing error, adding to the error message. More...
 
 ~PalimpsestError () throw ()
 Empty destructor. More...
 
const char * what () const throw ()
 Error message. More...
 

Detailed Description

Error with file and line references to the calling code.

Definition at line 12 of file PalimpsestError.h.

Constructor & Destructor Documentation

◆ PalimpsestError() [1/2]

palimpsest::exceptions::PalimpsestError::PalimpsestError ( const std::string &  file,
unsigned  line,
const std::string &  message 
)
inline

Create a new error.

Parameters
[in]fileSource file of the instruction that threw the error.
[in]lineLine of code in that file where the throw originates from.
[in]messageError message.

Definition at line 20 of file PalimpsestError.h.

◆ PalimpsestError() [2/2]

palimpsest::exceptions::PalimpsestError::PalimpsestError ( const PalimpsestError other,
const std::string &  extra_message 
)
inline

Copy an existing error, adding to the error message.

Parameters
[in]otherExisting error.
[in]extra_messageAdditional error message.

Definition at line 33 of file PalimpsestError.h.

◆ ~PalimpsestError()

palimpsest::exceptions::PalimpsestError::~PalimpsestError ( )
throw (
)
inline

Empty destructor.

Definition at line 39 of file PalimpsestError.h.

Member Function Documentation

◆ what()

const char * palimpsest::exceptions::PalimpsestError::what ( ) const
throw (
)
inline

Error message.

Definition at line 42 of file PalimpsestError.h.


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