1 #ifndef EXCEPTIONS_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM 2 #define EXCEPTIONS_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM 4 #if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4 31 const char *
const END_OF_SEQ =
"end of sequence not found";
33 const char *
const MULTIPLE_TAGS =
"cannot assign multiple tags to the same node";
34 const char *
const MULTIPLE_ANCHORS =
"cannot assign multiple anchors to the same node";
35 const char *
const MULTIPLE_ALIASES =
"cannot assign multiple aliases to the same node";
36 const char *
const ALIAS_CONTENT =
"aliases can't have any content, *including* tags";
37 const char *
const INVALID_HEX =
"bad character found while scanning hex number";
41 const char *
const DOC_IN_SCALAR =
"illegal document indicator in scalar";
45 const char *
const FLOW_END =
"illegal flow end";
47 const char *
const MAP_KEY =
"illegal map key";
51 const char *
const CHAR_IN_ALIAS =
"illegal character found while scanning alias";
52 const char *
const CHAR_IN_ANCHOR =
"illegal character found while scanning anchor";
54 const char *
const CHAR_IN_BLOCK =
"unexpected character in block scalar";
55 const char *
const AMBIGUOUS_ANCHOR =
"cannot assign the same alias to multiple nodes";
80 std::stringstream stream;
81 stream << KEY_NOT_FOUND <<
": " << key;
87 std::stringstream stream;
88 stream << KEY_NOT_FOUND <<
": " << key;
96 :
std::runtime_error(build_what(mark_, msg_)), mark(mark_), msg(msg_) {}
104 std::stringstream output;
105 output <<
"yaml-cpp: error at line " << mark.
line+1 <<
", column " << mark.
column+1 <<
": " << msg;
131 template <
typename T>
136 template <
typename T>
146 template <
typename T>
164 #endif // EXCEPTIONS_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM
const char *const ALIAS_NOT_FOUND
const char *const ANCHOR_NOT_FOUND
const char *const INVALID_HEX
const char *const CHAR_IN_ALIAS
const char *const UNKNOWN_ANCHOR
static const std::string build_what(const Mark &mark, const std::string &msg)
const char *const END_OF_SEQ_FLOW
const char *const CHAR_IN_TAG_HANDLE
ParserException(const Mark &mark_, const std::string &msg_)
const char *const ZERO_INDENT_IN_BLOCK
const char *const MAP_KEY
Exception(const Mark &mark_, const std::string &msg_)
const char *const TAG_WITH_NO_SUFFIX
const char *const MULTIPLE_ALIASES
const char *const SINGLE_QUOTED_CHAR
const std::string KEY_NOT_FOUND_WITH_KEY(const T &, typename disable_if< is_numeric< T > >::type *=0)
const char *const BAD_DEREFERENCE
const char *const INVALID_ESCAPE
const char *const UNKNOWN_TOKEN
virtual ~TypedKeyNotFound()
const char *const INVALID_SCALAR
KeyNotFound(const Mark &mark_, const T &key_)
const char *const INVALID_ALIAS
const char *const CHAR_IN_SCALAR
const char *const INVALID_ANCHOR
const char *const EXPECTED_KEY_TOKEN
const char *const UNEXPECTED_KEY_TOKEN
const char *const YAML_DIRECTIVE_ARGS
const char *const EOF_IN_SCALAR
const char *const END_OF_VERBATIM_TAG
const char *const BLOCK_ENTRY
const char *const CHAR_IN_ANCHOR
InvalidScalar(const Mark &mark_)
const char *const UNEXPECTED_END_MAP
const char *const REPEATED_TAG_DIRECTIVE
const char *const YAML_VERSION
const char *const MULTIPLE_ANCHORS
EmitterException(const std::string &msg_)
RepresentationException(const Mark &mark_, const std::string &msg_)
const char *const FLOW_END
const char *const ALIAS_CONTENT
const char *const UNMATCHED_GROUP_TAG
const char *const DOC_IN_SCALAR
const char *const INVALID_UNICODE
const char *const YAML_MAJOR_VERSION
const char *const REPEATED_YAML_DIRECTIVE
const char *const CHAR_IN_BLOCK
const char *const AMBIGUOUS_ANCHOR
const char *const UNEXPECTED_VALUE_TOKEN
const char *const TAB_IN_INDENTATION
const char *const MAP_VALUE
TypedKeyNotFound(const Mark &mark_, const T &key_)
const char *const END_OF_SEQ
const char *const UNEXPECTED_END_SEQ
const char *const END_OF_MAP_FLOW
const char *const INVALID_TAG
const char *const KEY_NOT_FOUND
const char *const END_OF_MAP
const char *const MULTIPLE_TAGS
const char *const EXPECTED_VALUE_TOKEN
TypedKeyNotFound< T > MakeTypedKeyNotFound(const Mark &mark, const T &key)
const char *const TAG_DIRECTIVE_ARGS