123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233 |
- #ifndef BOOST_JSON_ERROR_HPP
- #define BOOST_JSON_ERROR_HPP
- #include <boost/json/detail/config.hpp>
- #ifndef BOOST_JSON_STANDALONE
- # include <boost/system/error_code.hpp>
- # include <boost/system/system_error.hpp>
- #else
- # include <system_error>
- #endif
- BOOST_JSON_NS_BEGIN
- #ifdef BOOST_JSON_DOCS
- using error_code = __see_below__;
- using error_category = __see_below__;
- using error_condition = __see_below__;
- using system_error = __see_below__;
- error_category const&
- generic_category();
- #elif ! defined(BOOST_JSON_STANDALONE)
- using error_code = boost::system::error_code;
- using error_category = boost::system::error_category;
- using error_condition = boost::system::error_condition;
- using system_error = boost::system::system_error;
- using boost::system::generic_category;
- #else
- using error_code = std::error_code;
- using error_category = std::error_category;
- using error_condition = std::error_condition;
- using system_error = std::system_error;
- using std::generic_category;
- #endif
- enum class error
- {
-
-
-
-
- syntax = 1,
-
- extra_data,
-
- incomplete,
-
- exponent_overflow,
-
- too_deep,
-
- illegal_leading_surrogate,
-
- illegal_trailing_surrogate,
-
- expected_hex_digit,
-
- expected_utf16_escape,
-
- object_too_large,
-
- array_too_large,
-
- key_too_large,
-
- string_too_large,
-
- exception,
-
-
- not_number,
-
- not_exact,
-
- test_failure,
- };
- enum class condition
- {
-
- parse_error = 1,
-
- assign_error
- };
- BOOST_JSON_NS_END
- #include <boost/json/impl/error.hpp>
- #endif
|