use specialized exception classes

This commit is contained in:
wmayer
2017-04-28 18:49:11 +02:00
parent 998c000516
commit fb7094bf31
60 changed files with 675 additions and 349 deletions

View File

@@ -71,7 +71,7 @@ App::OriginFeature *Origin::getOriginFeature( const char *role) const {
std::stringstream err;
err << "Origin \"" << getNameInDocument () << "\" doesn't contain feature with role \""
<< role << '"';
throw Base::Exception ( err.str().c_str () );
throw Base::RuntimeError ( err.str().c_str () );
}
}
@@ -83,7 +83,7 @@ App::Line *Origin::getAxis( const char *role ) const {
std::stringstream err;
err << "Origin \"" << getNameInDocument () << "\" contains bad Axis object for role \""
<< role << '"';
throw Base::Exception ( err.str().c_str () );
throw Base::RuntimeError ( err.str().c_str () );
}
}
@@ -95,7 +95,7 @@ App::Plane *Origin::getPlane( const char *role ) const {
std::stringstream err;
err << "Origin \"" << getNameInDocument () << "\" comtains bad Plane object for role \""
<< role << '"';
throw Base::Exception ( err.str().c_str () );
throw Base::RuntimeError ( err.str().c_str () );
}
}