Magick++ 6.9.13
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 22 of file Exception.h.

Constructor & Destructor Documentation

◆ Exception() [1/3]

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

Definition at line 21 of file Exception.cpp.

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

◆ Exception() [2/3]

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

Definition at line 28 of file Exception.cpp.

30 : std::exception(),
31 _what(what_),
32 _nested(nested_)
33{
34}

◆ Exception() [3/3]

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

Definition at line 36 of file Exception.cpp.

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

◆ ~Exception()

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

Definition at line 43 of file Exception.cpp.

44{
45 if (_nested != (Exception *) NULL)
46 delete _nested;
47}

Member Function Documentation

◆ nested() [1/2]

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

Definition at line 62 of file Exception.cpp.

63{
64 return(_nested);
65}

◆ nested() [2/2]

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

Definition at line 67 of file Exception.cpp.

68{
69 _nested=nested_;
70}

◆ operator=()

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

Definition at line 49 of file Exception.cpp.

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

◆ what()

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

Definition at line 57 of file Exception.cpp.

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

Member Data Documentation

◆ _nested

Exception* Magick::Exception::_nested
private

Definition at line 57 of file Exception.h.

◆ _what

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

Definition at line 56 of file Exception.h.


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