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

Public Member Functions

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

Protected Attributes

std::string _message
 Exception message.

Detailed Description

Base SFCGAL Exception.

BOOST_THROW_EXCEPTION( Exception("invalid geometry") );
Exception() noexcept
Default constructor.
Definition Exception.cpp:12

Constructor & Destructor Documentation

◆ Exception() [1/4]

SFCGAL::Exception::Exception ( )
noexcept

Default constructor.

◆ Exception() [2/4]

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

Constructor with message.

Parameters
messageThe exception message

◆ Exception() [3/4]

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

Copy constructor.

◆ Exception() [4/4]

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

Move constructor.

◆ ~Exception()

SFCGAL::Exception::~Exception ( )
overridedefaultnoexcept

Destructor.

Member Function Documentation

◆ diagnostic()

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

returns diagnostic information (file, line, etc.)

Returns
Diagnostic information string

◆ operator=() [1/2]

auto SFCGAL::Exception::operator= ( const Exception & ) -> Exception &=default
defaultnoexcept

Copy assignment operator.

Returns
Reference to this exception

◆ operator=() [2/2]

auto SFCGAL::Exception::operator= ( Exception && ) -> Exception &=default
defaultnoexcept

Move assignment operator.

Returns
Reference to this exception

◆ what()

auto SFCGAL::Exception::what ( ) const -> const char *
overridenoexcept

returns the exception message

Returns
The exception message

Member Data Documentation

◆ _message

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

Exception message.