+SGPropertyNode* PropertyObjectBase::getOrThrow() const
+{
+ SGPropertyNode* n = node(false);
+ if (!n) {
+ std::string path;
+ if (_prop) {
+ path = _prop->getPath();
+ if (_path) {
+ path += '/';
+ }
+ }
+
+ if (_path) {
+ path += _path;
+ }
+
+ throw sg_exception("Unknown property:" + path);
+ }
+
+ return n;
+}
+