1 //=============================================================================
2 // File : SALOME_Exception.idl
3 // Created : mar déc 18 17:57:27 CET 2001
4 // Author : Paul RASCLE, EDF
6 // Copyright : EDF 2001
8 //=============================================================================
10 /*! \file SALOME_Exception.idl This file contains the objects defining the main exception used
11 in %SALOME application.
13 #ifndef _SALOME_EXCEPTION_IDL_
14 #define _SALOME_EXCEPTION_IDL_
17 Module SALOME regroups all idl definitions for SALOME Kernel
23 This enumeration contains the elements indicating the type of the exception.
27 COMM, /*!< Communication problem */
28 BAD_PARAM, /*!< Bad User parameters */
29 INTERNAL_ERROR /*!< SALOME Bug, irrecoverable */
32 This struct contains a set of fields defining the structure of the exception.
34 struct ExceptionStruct
36 ExceptionType type; /*!<Type of the exception.*/
37 string text; /*!<Message which is shown when the exception is raised.*/
38 string sourceFile; /*!<The source file where the exception is raised.*/
39 unsigned long lineNumber; /*!<Number of the line of the source file where the exception is raised.*/
42 The main exception in %SALOME application.
44 exception SALOME_Exception
46 ExceptionStruct details;