Shapes
GIS made easy, a lightweight header-only planar geometry library for Modern C++
Public Member Functions | Protected Member Functions | List of all members
simo::shapes::exceptions::shapes_exception Class Reference

Base shapes exception. More...

#include <exceptions.hpp>

Inheritance diagram for simo::shapes::exceptions::shapes_exception:
simo::shapes::exceptions::geometry_error simo::shapes::exceptions::index_error simo::shapes::exceptions::not_implemented_error simo::shapes::exceptions::parse_error

Public Member Functions

 shapes_exception (const char *reason)
 Creates a shapes exception. More...
 
const char * what () const noexceptoverride
 Returns the exception reason. More...
 

Protected Member Functions

void set_reason (const std::string &reason)
 Set the exception reason. More...
 

Detailed Description

Base shapes exception.

Since
0.0.1

Definition at line 19 of file exceptions.hpp.

Constructor & Destructor Documentation

simo::shapes::exceptions::shapes_exception::shapes_exception ( const char *  reason)
inlineexplicit

Creates a shapes exception.

Parameters
reasonthe exception reason
Since
0.0.1

Definition at line 29 of file exceptions.hpp.

Member Function Documentation

void simo::shapes::exceptions::shapes_exception::set_reason ( const std::string &  reason)
inlineprotected

Set the exception reason.

Parameters
reasonthe exception reason
Since
0.0.1

Definition at line 52 of file exceptions.hpp.

const char* simo::shapes::exceptions::shapes_exception::what ( ) const
inlineoverridenoexcept

Returns the exception reason.

Returns
a string with the exception reason
Since
0.0.1

Definition at line 39 of file exceptions.hpp.


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