Replace Base::Exception with appropriate subclass
This commit is contained in:
@@ -60,10 +60,10 @@ const std::list<gp_Trsf> Scaled::getTransformations(const std::vector<App::Docum
|
||||
{
|
||||
double factor = Factor.getValue();
|
||||
if (factor < Precision::Confusion())
|
||||
throw Base::Exception("Scaling factor too small");
|
||||
throw Base::ValueError("Scaling factor too small");
|
||||
int occurrences = Occurrences.getValue();
|
||||
if (occurrences < 2)
|
||||
throw Base::Exception("At least two occurrences required");
|
||||
throw Base::ValueError("At least two occurrences required");
|
||||
|
||||
double f = (factor - 1.0) / double(occurrences - 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user