FlatCityBuf C++ reader 0.10.0
Native C++17 reader for FlatCityBuf, the cloud-optimized CityJSON format
Loading...
Searching...
No Matches
error.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <stdexcept>
4#include <string>
5
6namespace fcb {
7
27
31class Error : public std::runtime_error {
32 public:
33 Error(ErrorCode code, const std::string& message) : std::runtime_error(message), code_(code) {}
34
35 ErrorCode code() const noexcept { return code_; }
36
37 private:
38 ErrorCode code_;
39};
40
41} // namespace fcb
ErrorCode code() const noexcept
Definition error.hpp:35
Error(ErrorCode code, const std::string &message)
Definition error.hpp:33
ErrorCode
Error categories, mirroring fcb_core::error::Error (src/rust/fcb_core/src/error.rs) so the two implem...
Definition error.hpp:11
@ NoColumnsInHeader
Definition error.hpp:17
@ InvalidFlatbuffer
Definition error.hpp:14
@ IllegalHeaderSize
Definition error.hpp:13
@ UnsupportedColumnType
Definition error.hpp:19
@ QueryExecutionError
Definition error.hpp:21
@ AttributeIndexNotFound
Definition error.hpp:16
@ MissingMagicBytes
Definition error.hpp:12
@ MissingRequiredField
Definition error.hpp:18
@ InvalidAttributeValue
Definition error.hpp:20