CDT  1.4.5
C++ library for constrained Delaunay triangulation
Loading...
Searching...
No Matches
CDT::Error Class Reference

Base class for errors. More...

#include <Triangulation.h>

Inheritance diagram for CDT::Error:
Collaboration diagram for CDT::Error:

Public Member Functions

 Error (const std::string &description, const SourceLocation &srcLoc)
 Constructor.
 
virtual ~Error () CDT_NOEXCEPT
 Destructor.
 
const std::string & description () const
 Get error description.
 
const SourceLocationsourceLocation () const
 Get source location from where the error was thrown.
 

Detailed Description

Base class for errors.

Contains error description and source location: file, function, line

Definition at line 142 of file Triangulation.h.

Constructor & Destructor Documentation

◆ Error()

CDT::Error::Error ( const std::string & description,
const SourceLocation & srcLoc )
inline

Constructor.

Definition at line 146 of file Triangulation.h.

◆ ~Error()

virtual CDT::Error::~Error ( )
inlinevirtual

Destructor.

Definition at line 154 of file Triangulation.h.

Member Function Documentation

◆ description()

const std::string & CDT::Error::description ( ) const
inline

Get error description.

Definition at line 157 of file Triangulation.h.

◆ sourceLocation()

const SourceLocation & CDT::Error::sourceLocation ( ) const
inline

Get source location from where the error was thrown.

Definition at line 162 of file Triangulation.h.


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