Skip to content

Commit

Permalink
+ raise a TypeError instead of a standard exception in ObjectIdentifier
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jan 26, 2016
1 parent 72328ed commit 28b92c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App/ObjectIdentifier.cpp
Expand Up @@ -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();

Expand Down

0 comments on commit 28b92c4

Please sign in to comment.