GEOS
Public Member Functions | List of all members
geos::Exception Struct Reference

Geos Exception used in GEOS_THROW. More...

#include <GeosExceptions.hpp>

Inheritance diagram for geos::Exception:
Inheritance graph
[legend]

Public Member Functions

 Exception (std::string const &what)
 Constructor. More...
 
virtual char const * what () const noexcept override final
 System fallback to get description content if error system does not achieve to output the ErrorMsg can also provide exception information to debuggers. More...
 
void prepareWhat (DiagnosticMsg &msg) noexcept
 Prepare and cache the formatted exception message. More...
 

Detailed Description

Geos Exception used in GEOS_THROW.

Definition at line 29 of file GeosExceptions.hpp.

Constructor & Destructor Documentation

◆ Exception()

geos::Exception::Exception ( std::string const &  what)
inline

Constructor.

Parameters
whatThe error message describing the exception

Definition at line 38 of file GeosExceptions.hpp.

Member Function Documentation

◆ prepareWhat()

void geos::Exception::prepareWhat ( DiagnosticMsg msg)
noexcept

Prepare and cache the formatted exception message.

Parameters
msgError message logger for structured error reporting

◆ what()

virtual char const* geos::Exception::what ( ) const
inlinefinaloverridevirtualnoexcept

System fallback to get description content if error system does not achieve to output the ErrorMsg can also provide exception information to debuggers.

Returns
Returns The exception message
Note
We does not allow to override what(), it's the GEOS_THROW responsability to write-in the exception message

Definition at line 48 of file GeosExceptions.hpp.


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