+ raise a TypeError instead of a standard exception in ObjectIdentifier

This commit is contained in:
wmayer 2016-01-26 12:49:15 +01:00
parent 72328ed0a1
commit 28b92c478b

View File

@ -148,7 +148,7 @@ ObjectIdentifier::ObjectIdentifier(const Property &prop)
DocumentObject * docObj = freecad_dynamic_cast<DocumentObject>(prop.getContainer());
if (!docObj)
throw Base::Exception("Property must be owned by a document object.");
throw Base::TypeError("Property must be owned by a document object.");
Document * doc = docObj->getDocument();