Version: 9.12.0
Utils_CorbaException.hxx File Reference
#include "SALOME_Utils.hxx"
#include <SALOMEconfig.h>
#include <CORBA_SERVER_HEADER(SALOME_Exception)>
#include <ostream>
Include dependency graph for Utils_CorbaException.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define THROW_SALOME_CORBA_EXCEPTION(chain, typex)
 To raise a CORBA exception from a CORBA servant. More...
 

Functions

std::ostream & operator<< (std::ostream &os, const CORBA::Exception &e)
 

Macro Definition Documentation

◆ THROW_SALOME_CORBA_EXCEPTION

#define THROW_SALOME_CORBA_EXCEPTION (   chain,
  typex 
)
Value:
{\
SALOME::ExceptionStruct ExDescription; \
ExDescription.text = CORBA::string_dup(chain); \
ExDescription.type = typex; \
ExDescription.sourceFile = CORBA::string_dup(__FILE__); \
ExDescription.lineNumber = __LINE__; \
throw SALOME::SALOME_Exception(ExDescription); \
}
The main exception in SALOME application.
Definition: SALOME_Exception.idl:71

To raise a CORBA exception from a CORBA servant.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const CORBA::Exception &  e 
)

References TestSalomeSDS1::tmp.