mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-17 14:04:44 +08:00
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:
@@ -16,7 +16,6 @@
|
||||
#ifndef _Aspect_AspectFillAreaDefinitionError_HeaderFile
|
||||
#define _Aspect_AspectFillAreaDefinitionError_HeaderFile
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
#include <Standard_SStream.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
#ifndef _Aspect_AspectLineDefinitionError_HeaderFile
|
||||
#define _Aspect_AspectLineDefinitionError_HeaderFile
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
#include <Standard_SStream.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
#ifndef _Aspect_AspectMarkerDefinitionError_HeaderFile
|
||||
#define _Aspect_AspectMarkerDefinitionError_HeaderFile
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
#include <Standard_SStream.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user