ElementNotFoundException Class Reference

#include <exceptions.h>

Inheritance diagram for ElementNotFoundException:
CObjectException

List of all members.

Public Member Functions

 ElementNotFoundException (std::string _parent, std::string _child)
virtual ~ElementNotFoundException () throw ()
const char * what () const throw ()
void getParent (std::string &par) const
void getChild (std::string &ch) const

Private Attributes

const std::string parent
const std::string child
std::string message

Detailed Description

Exception thrown when element can't be found in complex type.


Constructor & Destructor Documentation

ElementNotFoundException::ElementNotFoundException ( std::string  _parent,
std::string  _child 
) [inline]

Exception constructor.

Parameters:
_parent Complex type.
_child Element which hasn't been found.

If name of the complex is not available in context, at least its type should be provided. _child stands for identifier which was searched.

References child, message, and parent.

virtual ElementNotFoundException::~ElementNotFoundException (  )  throw () [inline, virtual]

Member Function Documentation

void ElementNotFoundException::getChild ( std::string &  ch  )  const [inline]

Gets child value.

Parameters:
ch Place where to store child string.

References child.

void ElementNotFoundException::getParent ( std::string &  par  )  const [inline]

Gets parent value.

Parameters:
par Place where to store parent string.

References parent.

const char* ElementNotFoundException::what (  )  const throw () [inline]

Prints context information of exception.

Returns:
c string containing context message.

References message.


Member Data Documentation

const std::string ElementNotFoundException::child [private]

Child which wasn't found in dictionary.

Referenced by ElementNotFoundException(), and getChild().

std::string ElementNotFoundException::message [private]

Referenced by ElementNotFoundException(), and what().

const std::string ElementNotFoundException::parent [private]

Complex typed name/identifier.

Referenced by ElementNotFoundException(), and getParent().


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