From 28b92c478b9bf3af454d0583302013d459f41ec0 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 26 Jan 2016 12:49:15 +0100 Subject: [PATCH] + raise a TypeError instead of a standard exception in ObjectIdentifier --- src/App/ObjectIdentifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/ObjectIdentifier.cpp b/src/App/ObjectIdentifier.cpp index b0dc8f6fc..e99783adc 100644 --- a/src/App/ObjectIdentifier.cpp +++ b/src/App/ObjectIdentifier.cpp @@ -148,7 +148,7 @@ ObjectIdentifier::ObjectIdentifier(const Property &prop) DocumentObject * docObj = freecad_dynamic_cast(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();