Magick++ 7.1.1
Loading...
Searching...
No Matches
Magick::Exception Class Reference
Inheritance diagram for Magick::Exception:
Collaboration diagram for Magick::Exception:

Public Member Functions

 Exception (const std::string &what_)
 
 Exception (const std::string &what_, Exception *nested_)
 
 Exception (const Exception &original_)
 
Exceptionoperator= (const Exception &original_)
 
virtual const char * what () const throw ()
 
const Exceptionnested () const throw ()
 
void nested (Exception *nested_) throw ()
 

Private Attributes

std::string _what
 
Exception_nested
 

Detailed Description

Definition at line 24 of file Exception.h.

Constructor & Destructor Documentation

◆ Exception() [1/3]

Magick::Exception::Exception ( const std::string &  what_)

Definition at line 23 of file Exception.cpp.

24 : std::exception(),
25 _what(what_),
26 _nested((Exception *) NULL)
27{
28}

◆ Exception() [2/3]

Magick::Exception::Exception ( const std::string &  what_,
Exception nested_ 
)

Definition at line 30 of file Exception.cpp.

32 : std::exception(),
33 _what(what_),
34 _nested(nested_)
35{
36}

◆ Exception() [3/3]

Magick::Exception::Exception ( const Exception original_)

Definition at line 38 of file Exception.cpp.

39 : exception(original_),
40 _what(original_._what),
41 _nested((Exception *) NULL)
42{
43}

◆ ~Exception()

Magick::Exception::~Exception ( )
throw (
)
virtual

Definition at line 45 of file Exception.cpp.

46{
47 delete _nested;
48}

Member Function Documentation

◆ nested() [1/2]

const Magick::Exception * Magick::Exception::nested ( ) const
throw (
)

Definition at line 63 of file Exception.cpp.

64{
65 return(_nested);
66}

◆ nested() [2/2]

void Magick::Exception::nested ( Exception nested_)
throw (
)

Definition at line 68 of file Exception.cpp.

69{
70 _nested=nested_;
71}

◆ operator=()

Magick::Exception & Magick::Exception::operator= ( const Exception original_)

Definition at line 50 of file Exception.cpp.

52{
53 if (this != &original_)
54 this->_what=original_._what;
55 return(*this);
56}

◆ what()

const char * Magick::Exception::what ( ) const
throw (
)
virtual

Definition at line 58 of file Exception.cpp.

59{
60 return(_what.c_str());
61}

Member Data Documentation

◆ _nested

Exception* Magick::Exception::_nested
private

Definition at line 59 of file Exception.h.

◆ _what

std::string Magick::Exception::_what
private

Definition at line 58 of file Exception.h.


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