mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-18 14:27:39 +03:00
0026937: Eliminate NO_CXX_EXCEPTION macro support
Macro NO_CXX_EXCEPTION was removed from code. Method Raise() was replaced by explicit throw statement. Method Standard_Failure::Caught() was replaced by normal C++mechanism of exception transfer. Method Standard_Failure::Caught() is deprecated now. Eliminated empty constructors. Updated samples. Eliminate empty method ChangeValue from NCollection_Map class. Removed not operable methods from NCollection classes.
This commit is contained in:
@@ -56,7 +56,7 @@ TObj_Application::TObj_Application () : myIsError(Standard_False)
|
||||
Message_MsgFile::LoadFromString (TObj_TObj_msg, sizeof(TObj_TObj_msg) - 1);
|
||||
if (!Message_MsgFile::HasMsg ("TObj_Appl_SUnknownFailure"))
|
||||
{
|
||||
Standard_ProgramError::Raise ("Critical Error - message resources for TObj_Application are invalid or undefined!");
|
||||
throw Standard_ProgramError("Critical Error - message resources for TObj_Application are invalid or undefined!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,12 +135,12 @@ Standard_Boolean TObj_Application::LoadDocument
|
||||
{
|
||||
aStatus = Open (theSourceFile, theTargetDoc);
|
||||
}
|
||||
catch (Standard_Failure)
|
||||
{
|
||||
catch (Standard_Failure const& anException) {
|
||||
#ifdef OCCT_DEBUG
|
||||
ErrorMessage (Message_Msg("TObj_Appl_Exception") <<
|
||||
Standard_Failure::Caught()->GetMessageString());
|
||||
anException.GetMessageString());
|
||||
#endif
|
||||
(void)anException;
|
||||
}
|
||||
}
|
||||
myIsError = aStatus != PCDM_RS_OK;
|
||||
|
Reference in New Issue
Block a user