FlatCityBuf C++ reader
0.8.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
};
26
30
class
Error
:
public
std::runtime_error {
31
public
:
32
Error
(
ErrorCode
code
,
const
std::string& message) : std::runtime_error(message), code_(
code
) {}
33
34
ErrorCode
code
() const noexcept {
return
code_; }
35
36
private
:
37
ErrorCode
code_;
38
};
39
40
}
// namespace fcb
fcb::Error
Every failure the library reports is one of these.
Definition
error.hpp:30
fcb::Error::code
ErrorCode code() const noexcept
Definition
error.hpp:34
fcb::Error::Error
Error(ErrorCode code, const std::string &message)
Definition
error.hpp:32
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
fcb::ErrorCode::InvalidFlatbuffer
@ InvalidFlatbuffer
fcb::ErrorCode::IllegalHeaderSize
@ IllegalHeaderSize
fcb::ErrorCode::HttpError
@ HttpError
fcb::ErrorCode::UnsupportedColumnType
@ UnsupportedColumnType
fcb::ErrorCode::QueryExecutionError
@ QueryExecutionError
fcb::ErrorCode::AttributeIndexNotFound
@ AttributeIndexNotFound
fcb::ErrorCode::MissingMagicBytes
@ MissingMagicBytes
fcb::ErrorCode::JsonError
@ JsonError
fcb::ErrorCode::MissingRequiredField
@ MissingRequiredField
fcb::ErrorCode::NoIndex
@ NoIndex
fcb::ErrorCode::InvalidAttributeValue
@ InvalidAttributeValue
fcb::ErrorCode::IoError
@ IoError
include
fcb
error.hpp
Generated by
1.9.8