Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
libnest2d::GeometryException Class Reference

#include <src/libnest2d/include/libnest2d/common.hpp>

+ Inheritance diagram for libnest2d::GeometryException:
+ Collaboration diagram for libnest2d::GeometryException:

Public Member Functions

 GeometryException (GeomErr code)
 
GeomErr errcode () const
 
const char * what () const BP2D_NOEXCEPT override
 

Private Member Functions

virtual const std::string & errorstr (GeomErr errcode) const BP2D_NOEXCEPT
 

Private Attributes

GeomErr errcode_
 

Detailed Description

Constructor & Destructor Documentation

◆ GeometryException()

libnest2d::GeometryException::GeometryException ( GeomErr  code)
inline
192: errcode_(code) {}
GeomErr errcode_
Definition common.hpp:189

Member Function Documentation

◆ errcode()

GeomErr libnest2d::GeometryException::errcode ( ) const
inline
194{ return errcode_; }

References errcode_.

Referenced by errorstr().

+ Here is the caller graph for this function:

◆ errorstr()

virtual const std::string & libnest2d::GeometryException::errorstr ( GeomErr  errcode) const
inlineprivatevirtual
185 {
186 return ERROR_STR[static_cast<std::size_t>(errcode)];
187 }
GeomErr errcode() const
Definition common.hpp:194
const std::string ERROR_STR[]
Definition common.hpp:177

References errcode(), and libnest2d::ERROR_STR.

Referenced by what().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ what()

const char * libnest2d::GeometryException::what ( ) const
inlineoverride
196 {
197 return errorstr(errcode_).c_str();
198 }
virtual const std::string & errorstr(GeomErr errcode) const BP2D_NOEXCEPT
Definition common.hpp:185

References errcode_, and errorstr().

+ Here is the call graph for this function:

Member Data Documentation

◆ errcode_

GeomErr libnest2d::GeometryException::errcode_
private

Referenced by errcode(), and what().


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