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

Requested type doesn't match the one already in the dictionary. More...

#include <TypeError.h>

Public Member Functions

 TypeError (const std::string &file, unsigned line, const std::string &message)
 Create a type error. More...
 
 TypeError (const TypeError &other, const std::string &extra_message)
 Copy an existing error, adding to the error message. More...
 
 ~TypeError () throw ()
 Empty destructor. More...
 
- Public Member Functions inherited from palimpsest::exceptions::PalimpsestError
 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

Requested type doesn't match the one already in the dictionary.

Definition at line 13 of file TypeError.h.

Constructor & Destructor Documentation

◆ TypeError() [1/2]

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

Create a type 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 21 of file TypeError.h.

◆ TypeError() [2/2]

palimpsest::exceptions::TypeError::TypeError ( const TypeError 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 29 of file TypeError.h.

◆ ~TypeError()

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

Empty destructor.

Definition at line 33 of file TypeError.h.


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