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
6
namespace
fcb
{
7
11
enum class
ErrorCode
{
12
MissingMagicBytes
,
13
IllegalHeaderSize
,
14
InvalidFlatbuffer
,
15
NoIndex
,
16
AttributeIndexNotFound
,
17
NoColumnsInHeader
,
18
MissingRequiredField
,
19
UnsupportedColumnType
,
20
InvalidAttributeValue
,
21
QueryExecutionError
,
22
IoError
,
23
HttpError
,
24
JsonError
,
25
VertexOutOfRange
,
26
};
27
31
class
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
fcb::Error::code
ErrorCode code() const noexcept
Definition
error.hpp:35
fcb::Error::Error
Error(ErrorCode code, const std::string &message)
Definition
error.hpp:33
fcb
Definition
attribute.hpp:15
fcb::ErrorCode
ErrorCode
Error categories, mirroring fcb_core::error::Error (src/rust/fcb_core/src/error.rs) so the two implem...
Definition
error.hpp:11
fcb::ErrorCode::NoColumnsInHeader
@ NoColumnsInHeader
Definition
error.hpp:17
fcb::ErrorCode::InvalidFlatbuffer
@ InvalidFlatbuffer
Definition
error.hpp:14
fcb::ErrorCode::IllegalHeaderSize
@ IllegalHeaderSize
Definition
error.hpp:13
fcb::ErrorCode::HttpError
@ HttpError
Definition
error.hpp:23
fcb::ErrorCode::UnsupportedColumnType
@ UnsupportedColumnType
Definition
error.hpp:19
fcb::ErrorCode::QueryExecutionError
@ QueryExecutionError
Definition
error.hpp:21
fcb::ErrorCode::AttributeIndexNotFound
@ AttributeIndexNotFound
Definition
error.hpp:16
fcb::ErrorCode::MissingMagicBytes
@ MissingMagicBytes
Definition
error.hpp:12
fcb::ErrorCode::JsonError
@ JsonError
Definition
error.hpp:24
fcb::ErrorCode::VertexOutOfRange
@ VertexOutOfRange
Definition
error.hpp:25
fcb::ErrorCode::MissingRequiredField
@ MissingRequiredField
Definition
error.hpp:18
fcb::ErrorCode::NoIndex
@ NoIndex
Definition
error.hpp:15
fcb::ErrorCode::InvalidAttributeValue
@ InvalidAttributeValue
Definition
error.hpp:20
fcb::ErrorCode::IoError
@ IoError
Definition
error.hpp:22
include
fcb
error.hpp
Generated by
1.15.0