Added some parser exceptions.

This commit is contained in:
Jesse Beder 2008-07-02 05:00:32 +00:00
parent 901d16a96f
commit 2ccbfeff47
9 changed files with 201 additions and 30 deletions

3
node.h
View file

@ -26,6 +26,7 @@ namespace YAML
friend bool operator == (const Iterator& it, const Iterator& jt);
friend bool operator != (const Iterator& it, const Iterator& jt);
Iterator& operator ++ ();
Iterator operator ++ (int);
const Node& operator * ();
const Node *operator -> ();
const Node& first();
@ -61,7 +62,7 @@ namespace YAML
it.first() >> t;
if(key == t)
return it.second();
} catch(InvalidScalar&) {
} catch(RepresentationException&) {
}
}