mirror of
https://github.com/loot/yaml-cpp.git
synced 2026-07-27 14:13:42 -07:00
Continued working on scanner.
We're now using exceptions for errors, and scanning/pushing tokens is exception-safe (using a set of "limbo tokens").
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#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 {};
|
||||
}
|
||||
Reference in New Issue
Block a user