CDT  2.0.1
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 SourceLocation & sourceLocation () 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 176 of file Triangulation.h.

Constructor & Destructor Documentation

◆ Error()

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

Constructor.

Definition at line 180 of file Triangulation.h.

◆ ~Error()

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

Destructor.

Definition at line 188 of file Triangulation.h.

Member Function Documentation

◆ description()

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

Get error description.

Definition at line 191 of file Triangulation.h.

◆ sourceLocation()

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

Get source location from where the error was thrown.

Definition at line 196 of file Triangulation.h.


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