use specialized exception classes
This commit is contained in:
@@ -88,7 +88,7 @@ void ViewProviderExtern::setModeByFile(const char* name, const char* ivFileName)
|
||||
}
|
||||
|
||||
file.close();
|
||||
in.setBuffer(&(content[0]),content.size());
|
||||
in.setBuffer(&(content[0]),content.size());
|
||||
setModeBySoInput(name,in);
|
||||
}
|
||||
}
|
||||
@@ -113,7 +113,7 @@ void ViewProviderExtern::setModeBySoInput(const char* name, SoInput &ivFileInput
|
||||
}
|
||||
}
|
||||
else {
|
||||
throw Base::Exception("No valid Inventor input");
|
||||
throw Base::RuntimeError("No valid Inventor input");
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user