mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-10 04:51:17 +00:00
Added some parser exceptions.
This commit is contained in:
@@ -6,6 +6,7 @@ namespace YAML
|
||||
{
|
||||
class Exception: public std::exception {};
|
||||
class ScannerException: public Exception {};
|
||||
class ParserException: public Exception {};
|
||||
class RepresentationException: public Exception {};
|
||||
|
||||
// scanner exceptions
|
||||
@@ -40,6 +41,12 @@ namespace YAML
|
||||
unsigned value;
|
||||
};
|
||||
|
||||
// parser exceptions
|
||||
class MapEndNotFound: public ParserException {};
|
||||
class SeqEndNotFound: public ParserException {};
|
||||
class BadYAMLDirective: public ParserException {};
|
||||
class BadTAGDirective: public ParserException {};
|
||||
|
||||
// representation exceptions
|
||||
class InvalidScalar: public RepresentationException {};
|
||||
class BadDereference: public RepresentationException {};
|
||||
|
Reference in New Issue
Block a user