exceptions.h 1014 Bytes
Newer Older
Jesse Beder's avatar
Jesse Beder committed
1
2
3
4
5
6
7
8
9
10
11
12
13
#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 {};
Jesse Beder's avatar
Jesse Beder committed
14
	class IllegalTabInScalar: public Exception {};
15
16
	class DocIndicatorInQuote: public Exception {};
	class EOFInQuote: public Exception {};
Jesse Beder's avatar
Jesse Beder committed
17
	class RequiredSimpleKeyNotFound: public Exception {};
18
19
	class ZeroIndentationInBlockScalar: public Exception {};
	class UnexpectedCharacterInBlockScalar: public Exception {};
Jesse Beder's avatar
Jesse Beder committed
20

21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
	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;
	};
Jesse Beder's avatar
Jesse Beder committed
36
}