mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00: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:
14
exceptions.h
Normal file
14
exceptions.h
Normal file
@@ -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