SFCGAL  2.2.0
Public Member Functions | Protected Attributes | List of all members
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 More...
 
std::string diagnostic () const noexcept
 returns diagnostic information (file, line, etc.) More...
 

Protected Attributes

std::string _message
 

Detailed Description

Base SFCGAL Exception.

BOOST_THROW_EXCEPTION( Exception("invalid geometry") );

Constructor & Destructor Documentation

SFCGAL::Exception::Exception ( )
noexcept
SFCGAL::Exception::Exception ( std::string const &  message)
explicitnoexcept
SFCGAL::Exception::Exception ( const Exception )
defaultnoexcept
SFCGAL::Exception::Exception ( Exception &&  )
defaultnoexcept
SFCGAL::Exception::~Exception ( )
overridedefaultnoexcept

Member Function Documentation

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

returns diagnostic information (file, line, etc.)

Exception& SFCGAL::Exception::operator= ( const Exception )
defaultnoexcept
Exception& SFCGAL::Exception::operator= ( Exception &&  )
defaultnoexcept
auto SFCGAL::Exception::what ( ) const
overridenoexcept

returns the exception message

Member Data Documentation

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