FlatCityBuf C++ reader 0.10.0
Native C++17 reader for FlatCityBuf, the cloud-optimized CityJSON format
Loading...
Searching...
No Matches
fcb::Error Class Reference

Every failure the library reports is one of these. More...

#include <fcb/error.hpp>

Inheritance diagram for fcb::Error:

Public Member Functions

 Error (ErrorCode code, const std::string &message)
ErrorCode code () const noexcept

Detailed Description

Every failure the library reports is one of these.

Derives from std::runtime_error so callers that only care that something went wrong can catch it without knowing about fcb at all.

Definition at line 31 of file error.hpp.

Constructor & Destructor Documentation

◆ Error()

fcb::Error::Error ( ErrorCode code,
const std::string & message )
inline

Definition at line 33 of file error.hpp.

References code().

Member Function Documentation

◆ code()

ErrorCode fcb::Error::code ( ) const
inlinenoexcept

Definition at line 35 of file error.hpp.

Referenced by Error().


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