2008-06-26 19:30:11 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <exception>
|
|
|
|
|
|
|
|
|
|
namespace YAML
|
|
|
|
|
{
|
|
|
|
|
class Exception: public std::exception {};
|
|
|
|
|
|
|
|
|
|
class UnknownToken: public Exception {};
|
|
|
|
|
class IllegalBlockEntry: public Exception {};
|
|
|
|
|
class IllegalMapKey: public Exception {};
|
|
|
|
|
class IllegalMapValue: public Exception {};
|
|
|
|
|
class IllegalScalar: public Exception {};
|
2008-06-26 22:00:39 +00:00
|
|
|
class IllegalTabInScalar: public Exception {};
|
2008-06-28 22:05:51 +00:00
|
|
|
class IllegalFlowEnd: public Exception {};
|
2008-06-27 23:11:46 +00:00
|
|
|
class DocIndicatorInQuote: public Exception {};
|
|
|
|
|
class EOFInQuote: public Exception {};
|
2008-06-28 06:36:59 +00:00
|
|
|
class RequiredSimpleKeyNotFound: public Exception {};
|
2008-06-28 20:08:21 +00:00
|
|
|
class ZeroIndentationInBlockScalar: public Exception {};
|
|
|
|
|
class UnexpectedCharacterInBlockScalar: public Exception {};
|
2008-06-28 06:36:59 +00:00
|
|
|
|
2008-06-27 23:11:46 +00:00
|
|
|
class UnknownEscapeSequence: public Exception {
|
|
|
|
|
public:
|
|
|
|
|
UnknownEscapeSequence(char ch_): ch(ch_) {}
|
|
|
|
|
char ch;
|
|
|
|
|
};
|
|
|
|
|
class NonHexNumber: public Exception {
|
|
|
|
|
public:
|
|
|
|
|
NonHexNumber(char ch_): ch(ch_) {}
|
|
|
|
|
char ch;
|
|
|
|
|
};
|
|
|
|
|
class InvalidUnicode: public Exception {
|
|
|
|
|
public:
|
|
|
|
|
InvalidUnicode(unsigned value_): value(value_) {}
|
|
|
|
|
unsigned value;
|
|
|
|
|
};
|
2008-06-26 19:30:11 +00:00
|
|
|
}
|