Foundation Classes - Inherited Standard_Failure from std::exception (#984)

First patch in iterative renovation of exceptions.

- Simplify exception classes to be container of data only.
- Removed redundant inclusion of <Standard_Type.hxx> in various header files across the project.
- Removed Set methods for failure and its define template.
- Removed Raise and Rerise static methods.
- Remove Instance and Throw methods
- Deprecated getting message with old approach, and moving to what()
- Update ErrorHandler to handle only specific list of exceptions.
This commit is contained in:
Pasukhin Dmitry
2026-01-07 12:22:32 +00:00
committed by GitHub
parent 6c6f2ceb41
commit e1d36343e4
174 changed files with 590 additions and 668 deletions

View File

@@ -39,7 +39,7 @@ const char* BRepTools_Write(const char* theFileStr, void* theShapePtr)
}
catch (Standard_Failure const& anException)
{
return anException.GetMessageString();
return anException.what();
}
}
@@ -62,7 +62,7 @@ const char* BRepTools_Dump(void* theShapePtr)
}
catch (Standard_Failure const& anException)
{
return anException.GetMessageString();
return anException.what();
}
}
@@ -87,7 +87,7 @@ const char* BRepTools_DumpLoc(void* theLocationPtr)
}
catch (Standard_Failure const& anException)
{
return anException.GetMessageString();
return anException.what();
}
}