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

@@ -16,7 +16,6 @@
#ifndef _Aspect_AspectFillAreaDefinitionError_HeaderFile
#define _Aspect_AspectFillAreaDefinitionError_HeaderFile
#include <Standard_Type.hxx>
#include <Standard_SStream.hxx>
#include <Standard_OutOfRange.hxx>

View File

@@ -16,7 +16,6 @@
#ifndef _Aspect_AspectLineDefinitionError_HeaderFile
#define _Aspect_AspectLineDefinitionError_HeaderFile
#include <Standard_Type.hxx>
#include <Standard_SStream.hxx>
#include <Standard_OutOfRange.hxx>

View File

@@ -16,7 +16,6 @@
#ifndef _Aspect_AspectMarkerDefinitionError_HeaderFile
#define _Aspect_AspectMarkerDefinitionError_HeaderFile
#include <Standard_Type.hxx>
#include <Standard_SStream.hxx>
#include <Standard_OutOfRange.hxx>

View File

@@ -16,7 +16,6 @@
#ifndef _Aspect_DisplayConnectionDefinitionError_HeaderFile
#define _Aspect_DisplayConnectionDefinitionError_HeaderFile
#include <Standard_Type.hxx>
#include <Standard_DefineException.hxx>
#include <Standard_SStream.hxx>
#include <Standard_OutOfRange.hxx>

View File

@@ -16,7 +16,6 @@
#ifndef _Aspect_GraphicDeviceDefinitionError_HeaderFile
#define _Aspect_GraphicDeviceDefinitionError_HeaderFile
#include <Standard_Type.hxx>
#include <Standard_DefineException.hxx>
#include <Standard_SStream.hxx>
#include <Standard_OutOfRange.hxx>

View File

@@ -16,7 +16,6 @@
#ifndef _Aspect_IdentDefinitionError_HeaderFile
#define _Aspect_IdentDefinitionError_HeaderFile
#include <Standard_Type.hxx>
#include <Standard_DefineException.hxx>
#include <Standard_SStream.hxx>
#include <Standard_OutOfRange.hxx>

View File

@@ -16,7 +16,6 @@
#ifndef _Aspect_WindowDefinitionError_HeaderFile
#define _Aspect_WindowDefinitionError_HeaderFile
#include <Standard_Type.hxx>
#include <Standard_DefineException.hxx>
#include <Standard_SStream.hxx>
#include <Standard_OutOfRange.hxx>

View File

@@ -16,7 +16,6 @@
#ifndef _Aspect_WindowError_HeaderFile
#define _Aspect_WindowError_HeaderFile
#include <Standard_Type.hxx>
#include <Standard_DefineException.hxx>
#include <Standard_SStream.hxx>
#include <Standard_OutOfRange.hxx>

View File

@@ -17,7 +17,6 @@
#ifndef _Graphic3d_GroupDefinitionError_HeaderFile
#define _Graphic3d_GroupDefinitionError_HeaderFile
#include <Standard_Type.hxx>
#include <Standard_DefineException.hxx>
#include <Standard_SStream.hxx>
#include <Standard_OutOfRange.hxx>

View File

@@ -17,7 +17,6 @@
#ifndef _Graphic3d_MaterialDefinitionError_HeaderFile
#define _Graphic3d_MaterialDefinitionError_HeaderFile
#include <Standard_Type.hxx>
#include <Standard_DefineException.hxx>
#include <Standard_SStream.hxx>
#include <Standard_OutOfRange.hxx>

View File

@@ -17,7 +17,6 @@
#ifndef _Graphic3d_PriorityDefinitionError_HeaderFile
#define _Graphic3d_PriorityDefinitionError_HeaderFile
#include <Standard_Type.hxx>
#include <Standard_DefineException.hxx>
#include <Standard_SStream.hxx>
#include <Standard_OutOfRange.hxx>

View File

@@ -17,7 +17,6 @@
#ifndef _Graphic3d_StructureDefinitionError_HeaderFile
#define _Graphic3d_StructureDefinitionError_HeaderFile
#include <Standard_Type.hxx>
#include <Standard_DefineException.hxx>
#include <Standard_SStream.hxx>
#include <Standard_OutOfRange.hxx>

View File

@@ -17,7 +17,6 @@
#ifndef _WNT_ClassDefinitionError_HeaderFile
#define _WNT_ClassDefinitionError_HeaderFile
#include <Standard_Type.hxx>
#include <Standard_DefineException.hxx>
#include <Standard_SStream.hxx>
#include <Standard_ConstructionError.hxx>