#include <PCDM_StorageDriver.hxx>
#include <Standard_ErrorHandler.hxx>
#include <Standard_NoSuchObject.hxx>
+#include <Standard_ProgramError.hxx>
#include <TCollection_ExtendedString.hxx>
IMPLEMENT_STANDARD_RTTIEXT(CDF_StoreList,Standard_Transient)
{
Standard_SStream aMsg;
aMsg <<"No storage driver does exist for this format: " << theDocument->StorageFormat() << (char)0;
- throw Standard_Failure(aMsg.str().c_str());
+ throw Standard_ProgramError(aMsg.str().c_str());
}
// Reset the store-status.
CAUGHT(anException, aStatusAssociatedText, TCollection_ExtendedString("metadatadriver failed; reason:"));
status = PCDM_SS_DriverFailure;
}
+ catch (Standard_ProgramError const& anException) {
+ CAUGHT(anException, aStatusAssociatedText, TCollection_ExtendedString("driver not found; reason:"));
+ status = PCDM_SS_UnrecognizedFormat;
+ }
+ catch (Standard_NoSuchObject const& anException) {
+ CAUGHT(anException, aStatusAssociatedText, TCollection_ExtendedString("driver not found; reason:"));
+ status = PCDM_SS_UnrecognizedFormat;
+ }
catch (Standard_Failure const& anException) {
CAUGHT(anException, aStatusAssociatedText, TCollection_ExtendedString("driver failed; reason:"));
status = PCDM_SS_Failure;