We're now using exceptions for errors, and scanning/pushing tokens is exception-safe (using a set of "limbo tokens").
15 lines
334 B
C++
15 lines
334 B
C++
#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 {};
|
|
}
|