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
12NEFORCE_BEGIN_NAMESPACE__
13
18
23struct serialize_exception final : value_exception {
24 explicit serialize_exception(const char* info = "Serialization failed.") noexcept :
25 value_exception(info) {}
26};
27
32struct deserialize_exception : value_exception {
34
35 explicit deserialize_exception(const char* info = "Deserialization failed.", string path = "") noexcept :
36 value_exception(info),
38};
39
44struct 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
53struct 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
60NEFORCE_END_NAMESPACE__
61#endif // NEFORCE_CORE_SERIALIZE_SERIALIZE_EXCEPTION_HPP__
文件路径类
constexpr Iterator2 move(Iterator1 first, Iterator1 last, Iterator2 result) noexcept(noexcept(inner::__move_aux(first, last, result)))
移动范围元素
字符串类型别名和实用函数
string property_path
失败的属性路径