break;
}
}
- catch(const SALOME_Exception & /*ex*/) //!< TODO: unused variable
+ catch(const SALOME_Exception & ex) //!< TODO: unused variable
{
MESSAGE("[GiveContainer] Exception in ResourceManager find !: " << ex.what());
return ret;
_what = oss;
}
- virtual const char* what( void ) const
+ virtual const char* what( void ) const noexcept
{
return _what.c_str() ;
}
} \
\
virtual void set_property(const char * name, const CORBA::Any& value) \
- throw (Ports::NotDefined, Ports::BadType, Ports::BadValue); \
+ ; \
\
virtual CORBA::Any* get_property(const char* name) \
- throw (Ports::NotDefined); \
+ ; \
\
virtual void provides_port_changed(int connection_nbr, \
const Engines::DSC::Message message) { \
specificPortName::~specificPortName(void) {}; \
\
void specificPortName::set_property(const char * name, const CORBA::Any& value) \
- throw (Ports::NotDefined, Ports::BadType, Ports::BadValue) { \
+ { \
\
const std::string key(name); \
CORBA::Long sl; \
\
\
CORBA::Any* specificPortName::get_property(const char* name) \
- throw (Ports::NotDefined) { \
+ { \
const std::string key(name); \
CORBA::Any* value=new CORBA::Any; \
if (key == "StorageLevel" ) \
template <typename SpecificPortType > SpecificPortType *
Superv_Component_i::get_port( const char * port_name)
- throw (PortNotDefined, PortNotConnected, BadCast, UnexpectedState)
+
{
assert(port_name);
A() {};
virtual ~A() {};
// La salome exception ne permet pas de passer une chaine ""
- void lanceException1_1() throw(Exp1) { throw Exp1("_");}
- void lanceException1_2() throw(Exp1) { throw Exp1("Ceci est l'exception 1_2");}
- void lanceException1_3() throw(Exp1) { throw Exp1(LOC("Ceci est l'exception 1_3"));}
- void lanceException1_4() throw(Exp1) { throw Exp1(LOC(OSS() << "Ceci est l'exeption 1_4" )); }
- void lanceException1_5() throw(Exp1) {
+ void lanceException1_1() { throw Exp1("_");}
+ void lanceException1_2() { throw Exp1("Ceci est l'exception 1_2");}
+ void lanceException1_3() { throw Exp1(LOC("Ceci est l'exception 1_3"));}
+ void lanceException1_4() { throw Exp1(LOC(OSS() << "Ceci est l'exeption 1_4" )); }
+ void lanceException1_5() {
int a=1;
throw Exp1(LOC(OSS() << "Ceci est l'exeption 1_5 avec la valeur A : " << a )); }
- void lanceException1_6() throw(Exp1) {
+ void lanceException1_6() {
Exp1 exp1(LOC(OSS() << "Ceci est l'exeption 1_6"));
std::cout << "Affichage de exp1.what() dans lanceException1_6() " << exp1.what() << std::endl;
throw Exp1(exp1);
}
- void lanceException1_7() throw(Exp1) {
+ void lanceException1_7() {
throw Exp1(LOC(OSS() << "Ceci est l'exeption 1_7"));
}
};
INCLUDE_DIRECTORIES(
${PYTHON_INCLUDE_DIRS}
${LIBBATCH_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_SOURCE_DIR}/../Basics
${CMAKE_CURRENT_SOURCE_DIR}/../ResourcesManager
${CMAKE_CURRENT_SOURCE_DIR}/../Launcher
)
# include <stdio.h>
}
-Registry::Components_var Connexion( int argc , char **argv , const char *ptrSessionName ) throw( CommException )
+Registry::Components_var Connexion( int argc , char **argv , const char *ptrSessionName )
{
Registry::Components_var varComponents = 0 ;
ASSERT(ptrSessionName) ;
infos.pid = lesInfos.pid() ;
infos.machine = CORBA::string_dup( lesInfos.host_char() ) ;
infos.adip = CORBA::string_dup( lesInfos.adip() ) ;
- infos.uid = /*(long)*/(CORBA::Long)((LONG_PTR)lesInfos.uid()) ; //!< TODO: pointer truncation from const PSID to long
+ infos.uid = /*(long)*/(CORBA::Long)lesInfos.uid() ; //!< TODO: pointer truncation from const PSID to long
infos.pwname = CORBA::string_dup( lesInfos.pwname() ) ;
infos.tc_start = (CORBA::Long)lesInfos.start() ; //!< TODO: conversation from const time_t to CORBA::Long
infos.tc_hello = 0 ;
catch(CORBA::Exception&) {
MESSAGE( "Caught CORBA::Exception." )
}
- catch(omniORB::fatalException& /*fe*/) { //!< TODO: unused variable
+ catch(omniORB::fatalException& fe) { //!< TODO: unused variable
MESSAGE( "Caught omniORB::fatalException:" )
MESSAGE( " file: " << fe.file() )
MESSAGE( " line: " << fe.line() )