exceptions.h 892 Bytes
Newer Older
beder's avatar
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 {};
beder's avatar
beder committed
14
	class IllegalTabInScalar: public Exception {};
beder's avatar
beder committed
15
16
	class DocIndicatorInQuote: public Exception {};
	class EOFInQuote: public Exception {};
beder's avatar
beder committed
17
18
	class RequiredSimpleKeyNotFound: public Exception {};

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