SFCGAL  2.3.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::WkbParseException SFCGAL::WktParseException

Public Member Functions

 Exception () noexcept
 Default constructor. More...
 
 Exception (std::string const &message) noexcept
 Constructor with message. More...
 
 Exception (const Exception &) noexcept=default
 Copy constructor. More...
 
auto operator= (const Exception &) noexcept-> Exception &=default
 Copy assignment operator. More...
 
 Exception (Exception &&) noexcept=default
 Move constructor. More...
 
auto operator= (Exception &&) noexcept-> Exception &=default
 Move assignment operator. More...
 
 ~Exception () noexcept override
 Destructor. More...
 
auto what () const noexcept-> const char *override
 returns the exception message More...
 
auto diagnostic () const noexcept-> std::string
 returns diagnostic information (file, line, etc.) More...
 

Protected Attributes

std::string _message
 Exception message. More...
 

Detailed Description

Base SFCGAL Exception.

BOOST_THROW_EXCEPTION( Exception("invalid geometry") );

Constructor & Destructor Documentation

SFCGAL::Exception::Exception ( )
noexcept

Default constructor.

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

Constructor with message.

Parameters
messageThe exception message
SFCGAL::Exception::Exception ( const Exception &  )
defaultnoexcept

Copy constructor.

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

Move constructor.

SFCGAL::Exception::~Exception ( )
overridedefaultnoexcept

Destructor.

Member Function Documentation

auto SFCGAL::Exception::diagnostic ( ) const -> std::string
noexcept

returns diagnostic information (file, line, etc.)

Returns
Diagnostic information string
auto SFCGAL::Exception::operator= ( const Exception &  ) -> Exception &=default
defaultnoexcept

Copy assignment operator.

Returns
Reference to this exception
auto SFCGAL::Exception::operator= ( Exception &&  ) -> Exception &=default
defaultnoexcept

Move assignment operator.

Returns
Reference to this exception
auto SFCGAL::Exception::what ( ) const -> const char *
overridenoexcept

returns the exception message

Returns
The exception message

Member Data Documentation

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

Exception message.