NexusForce
1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
serialize_exception.hpp
浏览该文件的文档.
1
#ifndef NEFORCE_CORE_SERIALIZE_SERIALIZE_EXCEPTION_HPP__
2
#define NEFORCE_CORE_SERIALIZE_SERIALIZE_EXCEPTION_HPP__
3
10
11
#include "
NeForce/core/string/string.hpp
"
12
NEFORCE_BEGIN_NAMESPACE__
13
18
23
struct
serialize_exception final : value_exception {
24
explicit
serialize_exception(
const
char
* info =
"Serialization failed."
) noexcept :
25
value_exception(info) {}
26
};
27
32
struct
deserialize_exception : value_exception {
33
string
property_path
;
34
35
explicit
deserialize_exception(
const
char
* info =
"Deserialization failed."
,
string
path
=
""
) noexcept :
36
value_exception(info),
37
property_path
(
move
(
path
)) {}
38
};
39
44
struct
missing_required_exception final : deserialize_exception {
45
explicit
missing_required_exception(
const
char
* property_name) :
46
deserialize_exception(
"Missing required property."
, property_name) {}
47
};
48
53
struct
type_mismatch_exception final : deserialize_exception {
54
explicit
type_mismatch_exception(
const
char
* expected_type) :
55
deserialize_exception(
"Type mismatch."
, expected_type) {}
56
};
57
// Exceptions
59
60
NEFORCE_END_NAMESPACE__
61
#endif
// NEFORCE_CORE_SERIALIZE_SERIALIZE_EXCEPTION_HPP__
neforce::path
文件路径类
定义
path.hpp:36
neforce::move
constexpr Iterator2 move(Iterator1 first, Iterator1 last, Iterator2 result) noexcept(noexcept(inner::__move_aux(first, last, result)))
移动范围元素
定义
shift.hpp:312
string.hpp
字符串类型别名和实用函数
neforce::deserialize_exception::property_path
string property_path
失败的属性路径
定义
serialize_exception.hpp:33
include
NeForce
core
serialize
serialize_exception.hpp
制作者
1.16.0