Added a templated derived exception to KeyNotFound so that you can figure out *which* key wasn't found.

This commit is contained in:
Jesse Beder
2009-01-01 02:40:18 +00:00
parent 5a2a317d62
commit 27bd791ea0
4 changed files with 25 additions and 13 deletions

View File

@@ -119,7 +119,7 @@ namespace YAML
}
}
throw KeyNotFound(m_line, m_column);
throw MakeTypedKeyNotFound(m_line, m_column, key);
}
template <typename T>