Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ecl::Exception Class Referenceabstract

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

#include <exception.hpp>

Inheritance diagram for ecl::Exception:
Inheritance graph
[legend]

Public Member Functions

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

Protected Member Functions

 Exception ()
 
 Exception (const char *loc)
 

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 57 of file exception.hpp.

Constructor & Destructor Documentation

◆ Exception() [1/2]

ecl::Exception::Exception ( )
inlineprotected

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

Definition at line 81 of file exception.hpp.

◆ Exception() [2/2]

ecl::Exception::Exception ( const char *  loc)
inlineprotected

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

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

Definition at line 86 of file exception.hpp.

Member Function Documentation

◆ what()

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

Virtual method for the error message output.

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

Member Data Documentation

◆ location

std::string ecl::Exception::location
protected

Definition at line 86 of file exception.hpp.


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


ecl_exceptions
Author(s): Daniel Stonier
autogenerated on Sun Aug 2 2020 03:12:04