yoda is hosted by Hepforge, IPPP Durham
YODA - Yet more Objects for Data Analysis  1.7.2
YODA_YAML::ErrorMsg Namespace Reference

Functions

template<typename T >
const std::string KEY_NOT_FOUND_WITH_KEY (const T &, typename disable_if< is_numeric< T > >::type *=0)
 
const std::string KEY_NOT_FOUND_WITH_KEY (const std::string &key)
 
template<typename T >
const std::string KEY_NOT_FOUND_WITH_KEY (const T &key, typename enable_if< is_numeric< T > >::type *=0)
 

Variables

const char *const YAML_DIRECTIVE_ARGS = "YAML directives must have exactly one argument"
 
const char *const YAML_VERSION = "bad YAML version: "
 
const char *const YAML_MAJOR_VERSION = "YAML major version too large"
 
const char *const REPEATED_YAML_DIRECTIVE = "repeated YAML directive"
 
const char *const TAG_DIRECTIVE_ARGS = "TAG directives must have exactly two arguments"
 
const char *const REPEATED_TAG_DIRECTIVE = "repeated TAG directive"
 
const char *const CHAR_IN_TAG_HANDLE = "illegal character found while scanning tag handle"
 
const char *const TAG_WITH_NO_SUFFIX = "tag handle with no suffix"
 
const char *const END_OF_VERBATIM_TAG = "end of verbatim tag not found"
 
const char *const END_OF_MAP = "end of map not found"
 
const char *const END_OF_MAP_FLOW = "end of map flow not found"
 
const char *const END_OF_SEQ = "end of sequence not found"
 
const char *const END_OF_SEQ_FLOW = "end of sequence flow not found"
 
const char *const MULTIPLE_TAGS = "cannot assign multiple tags to the same node"
 
const char *const MULTIPLE_ANCHORS = "cannot assign multiple anchors to the same node"
 
const char *const MULTIPLE_ALIASES = "cannot assign multiple aliases to the same node"
 
const char *const ALIAS_CONTENT = "aliases can't have any content, *including* tags"
 
const char *const INVALID_HEX = "bad character found while scanning hex number"
 
const char *const INVALID_UNICODE = "invalid unicode: "
 
const char *const INVALID_ESCAPE = "unknown escape character: "
 
const char *const UNKNOWN_TOKEN = "unknown token"
 
const char *const DOC_IN_SCALAR = "illegal document indicator in scalar"
 
const char *const EOF_IN_SCALAR = "illegal EOF in scalar"
 
const char *const CHAR_IN_SCALAR = "illegal character in scalar"
 
const char *const TAB_IN_INDENTATION = "illegal tab when looking for indentation"
 
const char *const FLOW_END = "illegal flow end"
 
const char *const BLOCK_ENTRY = "illegal block entry"
 
const char *const MAP_KEY = "illegal map key"
 
const char *const MAP_VALUE = "illegal map value"
 
const char *const ALIAS_NOT_FOUND = "alias not found after *"
 
const char *const ANCHOR_NOT_FOUND = "anchor not found after &"
 
const char *const CHAR_IN_ALIAS = "illegal character found while scanning alias"
 
const char *const CHAR_IN_ANCHOR = "illegal character found while scanning anchor"
 
const char *const ZERO_INDENT_IN_BLOCK = "cannot set zero indentation for a block scalar"
 
const char *const CHAR_IN_BLOCK = "unexpected character in block scalar"
 
const char *const AMBIGUOUS_ANCHOR = "cannot assign the same alias to multiple nodes"
 
const char *const UNKNOWN_ANCHOR = "the referenced anchor is not defined"
 
const char *const INVALID_SCALAR = "invalid scalar"
 
const char *const KEY_NOT_FOUND = "key not found"
 
const char *const BAD_DEREFERENCE = "bad dereference"
 
const char *const UNMATCHED_GROUP_TAG = "unmatched group tag"
 
const char *const UNEXPECTED_END_SEQ = "unexpected end sequence token"
 
const char *const UNEXPECTED_END_MAP = "unexpected end map token"
 
const char *const SINGLE_QUOTED_CHAR = "invalid character in single-quoted string"
 
const char *const INVALID_ANCHOR = "invalid anchor"
 
const char *const INVALID_ALIAS = "invalid alias"
 
const char *const INVALID_TAG = "invalid tag"
 
const char *const EXPECTED_KEY_TOKEN = "expected key token"
 
const char *const EXPECTED_VALUE_TOKEN = "expected value token"
 
const char *const UNEXPECTED_KEY_TOKEN = "unexpected key token"
 
const char *const UNEXPECTED_VALUE_TOKEN = "unexpected value token"
 

Function Documentation

◆ KEY_NOT_FOUND_WITH_KEY() [1/3]

template<typename T >
const std::string YODA_YAML::ErrorMsg::KEY_NOT_FOUND_WITH_KEY ( const T &  ,
typename disable_if< is_numeric< T > >::type *  = 0 
)
inline

Definition at line 75 of file exceptions.h.

References KEY_NOT_FOUND.

75  {
76  return KEY_NOT_FOUND;
77  }
const char *const KEY_NOT_FOUND
Definition: exceptions.h:59

◆ KEY_NOT_FOUND_WITH_KEY() [2/3]

const std::string YODA_YAML::ErrorMsg::KEY_NOT_FOUND_WITH_KEY ( const std::string &  key)
inline

Definition at line 79 of file exceptions.h.

79  {
80  std::stringstream stream;
81  stream << KEY_NOT_FOUND << ": " << key;
82  return stream.str();
83  }
const char *const KEY_NOT_FOUND
Definition: exceptions.h:59

◆ KEY_NOT_FOUND_WITH_KEY() [3/3]

template<typename T >
const std::string YODA_YAML::ErrorMsg::KEY_NOT_FOUND_WITH_KEY ( const T &  key,
typename enable_if< is_numeric< T > >::type *  = 0 
)
inline

Definition at line 86 of file exceptions.h.

86  {
87  std::stringstream stream;
88  stream << KEY_NOT_FOUND << ": " << key;
89  return stream.str();
90  }
const char *const KEY_NOT_FOUND
Definition: exceptions.h:59

Variable Documentation

◆ ALIAS_CONTENT

const char* const YODA_YAML::ErrorMsg::ALIAS_CONTENT = "aliases can't have any content, *including* tags"

Definition at line 36 of file exceptions.h.

◆ ALIAS_NOT_FOUND

const char* const YODA_YAML::ErrorMsg::ALIAS_NOT_FOUND = "alias not found after *"

Definition at line 49 of file exceptions.h.

◆ AMBIGUOUS_ANCHOR

const char* const YODA_YAML::ErrorMsg::AMBIGUOUS_ANCHOR = "cannot assign the same alias to multiple nodes"

Definition at line 55 of file exceptions.h.

◆ ANCHOR_NOT_FOUND

const char* const YODA_YAML::ErrorMsg::ANCHOR_NOT_FOUND = "anchor not found after &"

Definition at line 50 of file exceptions.h.

◆ BAD_DEREFERENCE

const char* const YODA_YAML::ErrorMsg::BAD_DEREFERENCE = "bad dereference"

Definition at line 60 of file exceptions.h.

◆ BLOCK_ENTRY

const char* const YODA_YAML::ErrorMsg::BLOCK_ENTRY = "illegal block entry"

Definition at line 46 of file exceptions.h.

◆ CHAR_IN_ALIAS

const char* const YODA_YAML::ErrorMsg::CHAR_IN_ALIAS = "illegal character found while scanning alias"

Definition at line 51 of file exceptions.h.

◆ CHAR_IN_ANCHOR

const char* const YODA_YAML::ErrorMsg::CHAR_IN_ANCHOR = "illegal character found while scanning anchor"

Definition at line 52 of file exceptions.h.

◆ CHAR_IN_BLOCK

const char* const YODA_YAML::ErrorMsg::CHAR_IN_BLOCK = "unexpected character in block scalar"

Definition at line 54 of file exceptions.h.

◆ CHAR_IN_SCALAR

const char* const YODA_YAML::ErrorMsg::CHAR_IN_SCALAR = "illegal character in scalar"

Definition at line 43 of file exceptions.h.

◆ CHAR_IN_TAG_HANDLE

const char* const YODA_YAML::ErrorMsg::CHAR_IN_TAG_HANDLE = "illegal character found while scanning tag handle"

Definition at line 26 of file exceptions.h.

◆ DOC_IN_SCALAR

const char* const YODA_YAML::ErrorMsg::DOC_IN_SCALAR = "illegal document indicator in scalar"

Definition at line 41 of file exceptions.h.

◆ END_OF_MAP

const char* const YODA_YAML::ErrorMsg::END_OF_MAP = "end of map not found"

Definition at line 29 of file exceptions.h.

◆ END_OF_MAP_FLOW

const char* const YODA_YAML::ErrorMsg::END_OF_MAP_FLOW = "end of map flow not found"

Definition at line 30 of file exceptions.h.

◆ END_OF_SEQ

const char* const YODA_YAML::ErrorMsg::END_OF_SEQ = "end of sequence not found"

Definition at line 31 of file exceptions.h.

◆ END_OF_SEQ_FLOW

const char* const YODA_YAML::ErrorMsg::END_OF_SEQ_FLOW = "end of sequence flow not found"

Definition at line 32 of file exceptions.h.

◆ END_OF_VERBATIM_TAG

const char* const YODA_YAML::ErrorMsg::END_OF_VERBATIM_TAG = "end of verbatim tag not found"

Definition at line 28 of file exceptions.h.

◆ EOF_IN_SCALAR

const char* const YODA_YAML::ErrorMsg::EOF_IN_SCALAR = "illegal EOF in scalar"

Definition at line 42 of file exceptions.h.

◆ EXPECTED_KEY_TOKEN

const char* const YODA_YAML::ErrorMsg::EXPECTED_KEY_TOKEN = "expected key token"

Definition at line 69 of file exceptions.h.

◆ EXPECTED_VALUE_TOKEN

const char* const YODA_YAML::ErrorMsg::EXPECTED_VALUE_TOKEN = "expected value token"

Definition at line 70 of file exceptions.h.

◆ FLOW_END

const char* const YODA_YAML::ErrorMsg::FLOW_END = "illegal flow end"

Definition at line 45 of file exceptions.h.

◆ INVALID_ALIAS

const char* const YODA_YAML::ErrorMsg::INVALID_ALIAS = "invalid alias"

Definition at line 67 of file exceptions.h.

◆ INVALID_ANCHOR

const char* const YODA_YAML::ErrorMsg::INVALID_ANCHOR = "invalid anchor"

Definition at line 66 of file exceptions.h.

◆ INVALID_ESCAPE

const char* const YODA_YAML::ErrorMsg::INVALID_ESCAPE = "unknown escape character: "

Definition at line 39 of file exceptions.h.

◆ INVALID_HEX

const char* const YODA_YAML::ErrorMsg::INVALID_HEX = "bad character found while scanning hex number"

Definition at line 37 of file exceptions.h.

◆ INVALID_SCALAR

const char* const YODA_YAML::ErrorMsg::INVALID_SCALAR = "invalid scalar"

Definition at line 58 of file exceptions.h.

◆ INVALID_TAG

const char* const YODA_YAML::ErrorMsg::INVALID_TAG = "invalid tag"

Definition at line 68 of file exceptions.h.

◆ INVALID_UNICODE

const char* const YODA_YAML::ErrorMsg::INVALID_UNICODE = "invalid unicode: "

Definition at line 38 of file exceptions.h.

◆ KEY_NOT_FOUND

const char* const YODA_YAML::ErrorMsg::KEY_NOT_FOUND = "key not found"

Definition at line 59 of file exceptions.h.

Referenced by KEY_NOT_FOUND_WITH_KEY().

◆ MAP_KEY

const char* const YODA_YAML::ErrorMsg::MAP_KEY = "illegal map key"

Definition at line 47 of file exceptions.h.

◆ MAP_VALUE

const char* const YODA_YAML::ErrorMsg::MAP_VALUE = "illegal map value"

Definition at line 48 of file exceptions.h.

◆ MULTIPLE_ALIASES

const char* const YODA_YAML::ErrorMsg::MULTIPLE_ALIASES = "cannot assign multiple aliases to the same node"

Definition at line 35 of file exceptions.h.

◆ MULTIPLE_ANCHORS

const char* const YODA_YAML::ErrorMsg::MULTIPLE_ANCHORS = "cannot assign multiple anchors to the same node"

Definition at line 34 of file exceptions.h.

◆ MULTIPLE_TAGS

const char* const YODA_YAML::ErrorMsg::MULTIPLE_TAGS = "cannot assign multiple tags to the same node"

Definition at line 33 of file exceptions.h.

◆ REPEATED_TAG_DIRECTIVE

const char* const YODA_YAML::ErrorMsg::REPEATED_TAG_DIRECTIVE = "repeated TAG directive"

Definition at line 25 of file exceptions.h.

◆ REPEATED_YAML_DIRECTIVE

const char* const YODA_YAML::ErrorMsg::REPEATED_YAML_DIRECTIVE = "repeated YAML directive"

Definition at line 23 of file exceptions.h.

◆ SINGLE_QUOTED_CHAR

const char* const YODA_YAML::ErrorMsg::SINGLE_QUOTED_CHAR = "invalid character in single-quoted string"

Definition at line 65 of file exceptions.h.

◆ TAB_IN_INDENTATION

const char* const YODA_YAML::ErrorMsg::TAB_IN_INDENTATION = "illegal tab when looking for indentation"

Definition at line 44 of file exceptions.h.

◆ TAG_DIRECTIVE_ARGS

const char* const YODA_YAML::ErrorMsg::TAG_DIRECTIVE_ARGS = "TAG directives must have exactly two arguments"

Definition at line 24 of file exceptions.h.

◆ TAG_WITH_NO_SUFFIX

const char* const YODA_YAML::ErrorMsg::TAG_WITH_NO_SUFFIX = "tag handle with no suffix"

Definition at line 27 of file exceptions.h.

◆ UNEXPECTED_END_MAP

const char* const YODA_YAML::ErrorMsg::UNEXPECTED_END_MAP = "unexpected end map token"

Definition at line 64 of file exceptions.h.

◆ UNEXPECTED_END_SEQ

const char* const YODA_YAML::ErrorMsg::UNEXPECTED_END_SEQ = "unexpected end sequence token"

Definition at line 63 of file exceptions.h.

◆ UNEXPECTED_KEY_TOKEN

const char* const YODA_YAML::ErrorMsg::UNEXPECTED_KEY_TOKEN = "unexpected key token"

Definition at line 71 of file exceptions.h.

◆ UNEXPECTED_VALUE_TOKEN

const char* const YODA_YAML::ErrorMsg::UNEXPECTED_VALUE_TOKEN = "unexpected value token"

Definition at line 72 of file exceptions.h.

◆ UNKNOWN_ANCHOR

const char* const YODA_YAML::ErrorMsg::UNKNOWN_ANCHOR = "the referenced anchor is not defined"

Definition at line 56 of file exceptions.h.

◆ UNKNOWN_TOKEN

const char* const YODA_YAML::ErrorMsg::UNKNOWN_TOKEN = "unknown token"

Definition at line 40 of file exceptions.h.

◆ UNMATCHED_GROUP_TAG

const char* const YODA_YAML::ErrorMsg::UNMATCHED_GROUP_TAG = "unmatched group tag"

Definition at line 62 of file exceptions.h.

◆ YAML_DIRECTIVE_ARGS

const char* const YODA_YAML::ErrorMsg::YAML_DIRECTIVE_ARGS = "YAML directives must have exactly one argument"

Definition at line 20 of file exceptions.h.

◆ YAML_MAJOR_VERSION

const char* const YODA_YAML::ErrorMsg::YAML_MAJOR_VERSION = "YAML major version too large"

Definition at line 22 of file exceptions.h.

◆ YAML_VERSION

const char* const YODA_YAML::ErrorMsg::YAML_VERSION = "bad YAML version: "

Definition at line 21 of file exceptions.h.

◆ ZERO_INDENT_IN_BLOCK

const char* const YODA_YAML::ErrorMsg::ZERO_INDENT_IN_BLOCK = "cannot set zero indentation for a block scalar"

Definition at line 53 of file exceptions.h.