SFCGAL 2.0.0
SFCGAL::Exception Class Reference

Base SFCGAL Exception. More...

#include <Exception.h>

Inheritance diagram for SFCGAL::Exception:
SFCGAL::GeometryInvalidityException SFCGAL::InappropriateGeometryException SFCGAL::NonFiniteValueException SFCGAL::NotImplementedException SFCGAL::WktParseException

Public Member Functions

 Exception () noexcept
 
 Exception (std::string const &message) noexcept
 
 Exception (const Exception &) noexcept=default
 
Exceptionoperator= (const Exception &) noexcept=default
 
 Exception (Exception &&) noexcept=default
 
Exceptionoperator= (Exception &&) noexcept=default
 
 ~Exception () noexcept override
 
const char * what () const noexcept override
 returns the exception message
 
std::string diagnostic () const noexcept
 returns diagnostic information (file, line, etc.)
 

Protected Attributes

std::string _message
 

Detailed Description

Base SFCGAL Exception.

BOOST_THROW_EXCEPTION( Exception("invalid geometry") );
Exception() noexcept
Definition Exception.cpp:10

Constructor & Destructor Documentation

◆ Exception() [1/4]

SFCGAL::Exception::Exception ( )
noexcept

◆ Exception() [2/4]

SFCGAL::Exception::Exception ( std::string const & message)
explicitnoexcept

◆ Exception() [3/4]

SFCGAL::Exception::Exception ( const Exception & )
defaultnoexcept

◆ Exception() [4/4]

SFCGAL::Exception::Exception ( Exception && )
defaultnoexcept

◆ ~Exception()

SFCGAL::Exception::~Exception ( )
overridedefaultnoexcept

Member Function Documentation

◆ diagnostic()

auto SFCGAL::Exception::diagnostic ( ) const
noexcept

returns diagnostic information (file, line, etc.)

◆ operator=() [1/2]

Exception & SFCGAL::Exception::operator= ( const Exception & )
defaultnoexcept

◆ operator=() [2/2]

Exception & SFCGAL::Exception::operator= ( Exception && )
defaultnoexcept

◆ what()

auto SFCGAL::Exception::what ( ) const
overridenoexcept

returns the exception message

Member Data Documentation

◆ _message

std::string SFCGAL::Exception::_message
protected