Replace Base::Exception with appropriate subclass

This commit is contained in:
wmayer
2018-11-14 19:42:10 +01:00
parent 7acdb56d92
commit b0247d184e
16 changed files with 41 additions and 41 deletions

View File

@@ -214,7 +214,7 @@ double DrawPage::getPageWidth() const
return templ->getWidth();
}
throw Base::Exception("Template not set for Page");
throw Base::RuntimeError("Template not set for Page");
}
double DrawPage::getPageHeight() const
@@ -229,7 +229,7 @@ double DrawPage::getPageHeight() const
}
}
throw Base::Exception("Template not set for Page");
throw Base::RuntimeError("Template not set for Page");
}
const char * DrawPage::getPageOrientation() const
@@ -244,7 +244,7 @@ const char * DrawPage::getPageOrientation() const
return templ->Orientation.getValueAsString();
}
}
throw Base::Exception("Template not set for Page");
throw Base::RuntimeError("Template not set for Page");
}
int DrawPage::addView(App::DocumentObject *docObj)