mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 22:11:26 +12:00
Added some parser exceptions.
This commit is contained in:
parent
901d16a96f
commit
2ccbfeff47
9 changed files with 201 additions and 30 deletions
3
node.h
3
node.h
|
@ -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&) {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue