Back to index

salome-kernel  6.5.0
Classes | Namespaces | Enumerations
SALOME_Exception.idl File Reference

This file contains the objects defining the main exception used in SALOME application. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SALOME::ExceptionStruct
 This struct contains a set of fields defining the structure of the exception. More...
exception  SALOME::SALOME_Exception
 The main exception in SALOME application. More...

Namespaces

namespace  SALOME
 Module SALOME contains all base interfaces of SALOME Kernel.

Enumerations

enum  SALOME::ExceptionType { SALOME::COMM, SALOME::BAD_PARAM, SALOME::INTERNAL_ERROR }
 This enumeration contains the elements indicating the type of the exception which can be raised during SALOME session. More...

Detailed Description

This file contains the objects defining the main exception used in SALOME application.

The idl SALOME_Exception provides a generic CORBA exception for SALOME, with an attribute that gives an exception type,a message, plus optional source file name and line number. This idl is intended to serve for all user CORBA exceptions raised in SALOME code, as IDL specification does not support exception inheritance. So, all the user CORBA exceptions from SALOME could be handled in a single catch.

Definition in file SALOME_Exception.idl.


Class Documentation

struct SALOME::ExceptionStruct

This struct contains a set of fields defining the structure of the exception.

Definition at line 55 of file SALOME_Exception.idl.

Collaboration diagram for SALOME::ExceptionStruct:
Class Members
unsigned long lineNumber Number of the line of the source file where the exception is raised.
string sourceFile The source file where the exception is raised.
string text Message which is shown when the exception is raised.
ExceptionType type Type of the exception.