ecl::Exception Class Reference

Virtual parent class for the ecl exceptions. More...

#include <exception.hpp>

Inheritance diagram for ecl::Exception:
Inheritance graph

List of all members.

Public Member Functions

virtual const char * what () const =0 throw ()
virtual ~Exception () throw ()

Protected Member Functions

 Exception (const char *loc)
 Exception ()

Protected Attributes

std::string location

Detailed Description

Virtual parent class for the ecl exceptions.

This is the parent class for all ecl exceptions. It cannot be instantiated directly - it can only be sub-classed.

See also:
StandardException, DataException, Exceptions Guide.

Definition at line 49 of file exception.hpp.

Constructor & Destructor Documentation

virtual ecl::Exception::~Exception (  )  throw () [inline, virtual]

Default destructor.

Definition at line 56 of file exception.hpp.

ecl::Exception::Exception (  )  [inline, protected]

Default constructor that does not configure the code location (used internally by the ecl when rethrowing).

Definition at line 63 of file exception.hpp.

ecl::Exception::Exception ( const char *  loc  )  [inline, protected]

Configures the code location - make sure you initialise this with the LOC macro.

loc : use with the LOC macro, identifies the line and file of the code.

Definition at line 68 of file exception.hpp.

Member Function Documentation

virtual const char* ecl::Exception::what (  )  const throw () [pure virtual]

Virtual method for the error message output.

Implemented in ecl::DataException< Data >, and ecl::StandardException.

Member Data Documentation

std::string ecl::Exception::location [protected]

Definition at line 68 of file exception.hpp.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines

Author(s): Daniel Stonier (d.stonier@gmail.com)
autogenerated on Fri Mar 1 15:20:36 2013