+ raise a TypeError instead of a standard exception in ObjectIdentifier
This commit is contained in:
parent
72328ed0a1
commit
28b92c478b
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user