return args;
}
-void SALOME_SocketSender_i::initCom() throw(SALOME::SALOME_Exception)
+void SALOME_SocketSender_i::initCom()
{
struct sockaddr_in serv_addr;
socklen_t n;
SCRUTE(_port);
}
-void SALOME_SocketSender_i::acceptCom() throw(SALOME::SALOME_Exception)
+void SALOME_SocketSender_i::acceptCom()
{
socklen_t sin_size;
struct sockaddr_in client_addr;
~SALOME_SocketSender_i();
SALOME::SocketSender::param* getParam();
void send();
- void initCom() throw(SALOME::SALOME_Exception);
- void acceptCom() throw(SALOME::SALOME_Exception);
+ void initCom();
+ void acceptCom();
void endOfCom();
void closeCom();
private:
_what = oss;
}
- virtual const char* what( void ) const throw ()
+ virtual const char* what( void ) const
{
return _what.c_str() ;
}
// Le destructeur de la SALOME_Exception devrait être virtuel
// sinon pb avec nos attributs de type pointeur.
- virtual ~DSC_Exception(void) throw() {};
+ virtual ~DSC_Exception(void) {};
virtual const std::string & getExceptionName() const {return _exceptionName;};
) : DSC_Exception(text,fileName,lineNumber,funcName) { \
_exceptionName = #Derived; \
} \
- virtual ~Derived(void) throw();\
+ virtual ~Derived(void);\
};\
//Sert à eviter le problème d'identification RTTI des exceptions
//Crée un unique typeInfo pour tous les bibliothèques composants SALOME
//dans un fichier cxx
-#define DSC_EXCEPTION_CXX(NameSpace,Derived) NameSpace::Derived::~Derived(void) throw() {};
+#define DSC_EXCEPTION_CXX(NameSpace,Derived) NameSpace::Derived::~Derived(void) {};
#endif /* DSC_EXCEPTION_HXX */
DSC_Exception(ex),_info(info),_exceptionName("CalciumException")
{};
- virtual ~CalciumException() throw() {};
+ virtual ~CalciumException() {};
CalciumTypes::InfoType getInfo() const { return _info;}
void setInfo(CalciumTypes::InfoType info) {_info=info;}
virtual const std::string & getExceptionName() const {return _exceptionName;};
provides_port *
Superv_Component_i::create_provides_data_port(const std::string& port_fab_type)
- throw (BadFabType)
+
{
provides_port * rtn_port = NULL;
std::string factory_name;
uses_port *
Superv_Component_i::create_uses_data_port(const std::string& port_fab_type)
-throw (BadFabType)
+
{
uses_port * rtn_proxy = NULL;
std::string factory_name;
Superv_Component_i::add_port(const char * port_fab_type,
const char * port_type,
const char * port_name)
- throw (PortAlreadyDefined, BadFabType, BadType, BadProperty)
+
{
assert(port_fab_type);
assert(port_type);
void
Superv_Component_i::add_port(provides_port * port,
const char* provides_port_name)
- throw (PortAlreadyDefined, NilPort, BadProperty)
+
{
assert(port);
assert(provides_port_name);
void
Superv_Component_i::add_port(uses_port * port,
const char* uses_port_name)
- throw (PortAlreadyDefined, NilPort, BadProperty)
+
{
assert(port);
assert(uses_port_name);
void
Superv_Component_i::get_port(provides_port *& port,
const char * provides_port_name)
- throw (PortNotDefined,PortNotConnected)
+
{
assert(provides_port_name);
void
Superv_Component_i::get_port(uses_port *& port,
const char * uses_port_name)
- throw (PortNotDefined, PortNotConnected)
+
{
assert(uses_port_name);
* \note It's user repsonsability to destroy the provides port.
*/
virtual provides_port * create_provides_data_port(const std::string& port_fab_type)
- throw (BadFabType);
+ ;
/*!
* \note It's user repsonsability to destroy the uses port.
*/
virtual uses_port * create_uses_data_port(const std::string& port_fab_type)
- throw (BadFabType);
+ ;
/*!
* Adds a port to the component. With this method only Salomé's provided DSC ports
virtual void add_port(const char * port_fab_type,
const char * port_type,
const char * port_name)
- throw (PortAlreadyDefined, BadFabType, BadType, BadProperty);
+ ;
/*!
* Adds a port to the component. With this method only Salomé's provided DSC ports
SpecificPortType * add_port(const char * port_fab_type,
const char * port_type,
const char * port_name)
- throw (PortAlreadyDefined, BadFabType, BadType, BadCast, BadProperty);
+ ;
/*!
* Adds a created provides port to the component.
*/
virtual void add_port(provides_port * port,
const char* provides_port_name)
- throw (PortAlreadyDefined, NilPort, BadProperty);
+ ;
/*!
* Adds a created uses port to the component.
*/
virtual void add_port(uses_port * port,
const char* uses_port_name)
- throw (PortAlreadyDefined, NilPort, BadProperty);
+ ;
/*!
* Gets the provides port already added in the component.
*/
virtual void get_port(provides_port *& port,
const char* provides_port_name)
- throw (PortNotDefined, PortNotConnected);
+ ;
/*!
* Gets the uses port already added in the component.
*/
virtual void get_port(uses_port *& port,
const char* uses_port_name)
- throw (PortNotDefined, PortNotConnected);
+ ;
/*!
* Gets the list of the ports of a service.
*/
template <typename SpecificPortType >
SpecificPortType * get_port( const char * port_name)
- throw (PortNotDefined, PortNotConnected, BadCast, UnexpectedState);
+ ;
/*!
* \see DSC_Callbacks::provides_port_changed
Superv_Component_i::add_port(const char * port_fab_type,
const char * port_type,
const char * port_name)
- throw (PortAlreadyDefined, BadFabType, BadType, BadCast, BadProperty)
+
{
assert(port_fab_type);
assert(port_type);
virtual void add_provides_port(Ports::Port_ptr ref,
const char* provides_port_name,
Ports::PortProperties_ptr port_prop)
- throw (Engines::DSC::PortAlreadyDefined,
- Engines::DSC::NilPort,
- Engines::DSC::BadProperty) {
+ {
Engines_DSC_interface::add_provides_port(ref,
provides_port_name,
port_prop);
virtual void add_uses_port(const char* repository_id,
const char* uses_port_name,
Ports::PortProperties_ptr port_prop)
- throw (Engines::DSC::PortAlreadyDefined,
- Engines::DSC::BadProperty) {
+ {
Engines_DSC_interface::add_uses_port(repository_id,
uses_port_name,
port_prop);
*/
virtual Ports::Port_ptr get_provides_port(const char* provides_port_name,
const CORBA::Boolean connection_error)
- throw (Engines::DSC::PortNotDefined,
- Engines::DSC::PortNotConnected) {
+ {
return Engines_DSC_interface::get_provides_port(provides_port_name,
connection_error);
}
* \see Engines::DSC::get_uses_port
*/
virtual Engines::DSC::uses_port * get_uses_port(const char* uses_port_name)
- throw (Engines::DSC::PortNotDefined,
- Engines::DSC::PortNotConnected) {
+ {
return Engines_DSC_interface::get_uses_port(uses_port_name);
}
* \see Engines::DSC::connect_provides_port
*/
virtual void connect_provides_port(const char* provides_port_name)
- throw (Engines::DSC::PortNotDefined) {
+ {
Engines_DSC_interface::connect_provides_port(provides_port_name);
}
*/
virtual void connect_uses_port(const char* uses_port_name,
Ports::Port_ptr provides_port_ref)
- throw (Engines::DSC::PortNotDefined,
- Engines::DSC::BadPortType,
- Engines::DSC::NilPort) {
+ {
Engines_DSC_interface::connect_uses_port(uses_port_name,
provides_port_ref);
}
* \see Engines::DSC::is_connected
*/
virtual CORBA::Boolean is_connected(const char* port_name)
- throw (Engines::DSC::PortNotDefined) {
+ {
return Engines_DSC_interface::is_connected(port_name);
}
*/
virtual void disconnect_provides_port(const char* provides_port_name,
const Engines::DSC::Message message)
- throw (Engines::DSC::PortNotDefined,
- Engines::DSC::PortNotConnected) {
+ {
Engines_DSC_interface::disconnect_provides_port(provides_port_name,
message);
}
virtual void disconnect_uses_port(const char* uses_port_name,
Ports::Port_ptr provides_port_ref,
const Engines::DSC::Message message)
- throw (Engines::DSC::PortNotDefined,
- Engines::DSC::PortNotConnected,
- Engines::DSC::BadPortReference) {
+ {
Engines_DSC_interface::disconnect_uses_port(uses_port_name,
provides_port_ref,
message);
}
virtual Ports::PortProperties_ptr get_port_properties(const char* port_name)
- throw (Engines::DSC::PortNotDefined) {
+ {
return Engines_DSC_interface::get_port_properties(port_name);
}
SALOMEDS::SObject_ptr SALOMEDS_DriverDefaultImpl::PublishInStudy(SALOMEDS::SObject_ptr theSObject,
CORBA::Object_ptr theObject,
const char* theName)
- throw (SALOME::SALOME_Exception)
{
MESSAGE("-----------------------------------------");
MESSAGE("-----------------------------------------");
virtual SALOMEDS::SObject_ptr PublishInStudy(SALOMEDS::SObject_ptr theSObject,
CORBA::Object_ptr theObject,
- const char* theName)
- throw (SALOME::SALOME_Exception);
+ const char* theName);
virtual CORBA::Boolean CanCopy(SALOMEDS::SObject_ptr theObject);
//----------------------------------------------------------------------
SALOME_ModuleCatalog::DefinitionInterface*
SALOME_ModuleCatalog_AcomponentImpl::GetInterface(const char* interfacename)
- throw(SALOME_ModuleCatalog::NotFound)
{
if(MYDEBUG) BEGIN_OF("GetInterface");
if(MYDEBUG) SCRUTE(interfacename);
//----------------------------------------------------------------------
SALOME_ModuleCatalog::ListOfServices*
SALOME_ModuleCatalog_AcomponentImpl::GetServiceList(const char* interfacename)
- throw(SALOME_ModuleCatalog::NotFound)
{
if(MYDEBUG) BEGIN_OF("GetServiceList");
if(MYDEBUG) SCRUTE(interfacename);
SALOME_ModuleCatalog::Service*
SALOME_ModuleCatalog_AcomponentImpl::GetService(const char* interfacename,
const char* servicename)
- throw(SALOME_ModuleCatalog::NotFound)
{
if(MYDEBUG) BEGIN_OF("GetService");
if(MYDEBUG) SCRUTE(interfacename);
//----------------------------------------------------------------------
SALOME_ModuleCatalog::Service*
SALOME_ModuleCatalog_AcomponentImpl::GetDefaultService(const char* interfacename)
- throw(SALOME_ModuleCatalog::NotFound)
{
if(MYDEBUG) BEGIN_OF("GetDefaultService");
if(MYDEBUG) SCRUTE(interfacename);
//----------------------------------------------------------------------
char*
SALOME_ModuleCatalog_AcomponentImpl::GetPathPrefix(const char* machinename)
- throw(SALOME_ModuleCatalog::NotFound)
{
if(MYDEBUG) BEGIN_OF("GetPathPrefix");
if(MYDEBUG) SCRUTE(machinename);
#ifdef WIN32
#pragma warning(disable:4275) // Disable warning interface non dll
-#pragma warning(disable:4290) // Warning Exception ...
+//#pragma warning(disable:4290) // Warning Exception ...
#endif
class MODULECATALOG_EXPORT SALOME_ModuleCatalog_AcomponentImpl: public POA_SALOME_ModuleCatalog::Acomponent
*/
virtual SALOME_ModuleCatalog::DefinitionInterface*
GetInterface(const char* interfacename)
- throw(SALOME_ModuleCatalog::NotFound);
+ ;
//! method to get a list of the services name of an interface of a component
/*!If the specified interface doesn't exist, the Notfound exception is thrown
*/
virtual SALOME_ModuleCatalog::ListOfServices*
GetServiceList(const char* interfacename)
- throw(SALOME_ModuleCatalog::NotFound);
+ ;
//! method to get one service of an interface of a component
virtual SALOME_ModuleCatalog::Service*
GetService(const char* interfacename,
const char* servicename)
- throw(SALOME_ModuleCatalog::NotFound);
+ ;
//! method to get the default service of an interface of a component
/*! If the specified interface doesn't exist, the Notfound exception is thrown
*/
virtual SALOME_ModuleCatalog::Service*
GetDefaultService(const char* interfacename)
- throw(SALOME_ModuleCatalog::NotFound);
+ ;
//! method to get the PathPrefix of a computer
/*! If the wanted computer doesn't exist, the Notfound exception is thrown
\return the prefix path
*/
virtual char* GetPathPrefix(const char* machinename)
- throw(SALOME_ModuleCatalog::NotFound);
+ ;
//! method to obtain the constraint affected to a component
/*! to be resolved by LifeCycle for the computer choice
void SALOME_NamingService::Register(CORBA::Object_ptr ObjRef,
const char* Path)
- throw(ServiceUnreachable)
+
{
Utils_Locker lock (&_myMutex);
// ============================================================================
CORBA::Object_ptr SALOME_NamingService::Resolve(const char* Path)
- throw(ServiceUnreachable)
+
{
Utils_Locker lock (&_myMutex);
// ============================================================================
CORBA::Object_ptr SALOME_NamingService::ResolveFirst(const char* Path)
- throw(ServiceUnreachable)
+
{
Utils_Locker lock (&_myMutex);
const char* containerName,
const char* componentName,
const int nbproc)
- throw(ServiceUnreachable)
+
{
Utils_Locker lock (&_myMutex);
// ============================================================================
int SALOME_NamingService::Find(const char* name)
-throw(ServiceUnreachable)
+
{
Utils_Locker lock (&_myMutex);
*/
// ============================================================================
-bool SALOME_NamingService::Create_Directory(const char* Path) throw(ServiceUnreachable)
+bool SALOME_NamingService::Create_Directory(const char* Path)
{
Utils_Locker lock (&_myMutex);
*/
// ============================================================================
-bool SALOME_NamingService::Change_Directory(const char* Path) throw(ServiceUnreachable)
+bool SALOME_NamingService::Change_Directory(const char* Path)
{
Utils_Locker lock (&_myMutex);
*/
// ============================================================================
-char *SALOME_NamingService::Current_Directory() throw(ServiceUnreachable)
+char *SALOME_NamingService::Current_Directory()
{
Utils_Locker lock (&_myMutex);
*/
// ============================================================================
-void SALOME_NamingService::list() throw(ServiceUnreachable)
+void SALOME_NamingService::list()
{
Utils_Locker lock (&_myMutex)
*/
// ============================================================================
-std::vector<std::string> SALOME_NamingService::list_directory() throw(ServiceUnreachable)
+std::vector<std::string> SALOME_NamingService::list_directory()
{
Utils_Locker lock (&_myMutex);
std::vector<std::string> dirList ;
*/
// ============================================================================
-std::vector<std::string> SALOME_NamingService::list_subdirs() throw(ServiceUnreachable)
+std::vector<std::string> SALOME_NamingService::list_subdirs()
{
Utils_Locker lock (&_myMutex);
std::vector<std::string> dirList ;
// ============================================================================
std::vector<std::string> SALOME_NamingService::list_directory_recurs()
-throw(ServiceUnreachable)
+
{
Utils_Locker lock (&_myMutex);
// ============================================================================
void SALOME_NamingService::Destroy_Name(const char* Path)
-throw(ServiceUnreachable)
+
{
Utils_Locker lock (&_myMutex);
*/
// ============================================================================
-void SALOME_NamingService::Destroy_Directory(const char* Path) throw(ServiceUnreachable)
+void SALOME_NamingService::Destroy_Directory(const char* Path)
{
Utils_Locker lock (&_myMutex);
*/
// ============================================================================
-void SALOME_NamingService::Destroy_FullDirectory(const char* Path) throw(ServiceUnreachable)
+void SALOME_NamingService::Destroy_FullDirectory(const char* Path)
{
//no need to lock here because method calls are threadsafe.
if( Change_Directory(Path) )
#include "SALOME_NamingService_defs.hxx"
#ifdef WIN32
-#pragma warning(disable:4290) // Warning Exception ...
+//#pragma warning(disable:4290) // Warning Exception ...
#endif
class NAMINGSERVICE_EXPORT SALOME_NamingService
virtual ~SALOME_NamingService();
void init_orb(CORBA::ORB_ptr orb=0);
- void Register(CORBA::Object_ptr ObjRef, const char* Path) throw(ServiceUnreachable);
- CORBA::Object_ptr Resolve(const char* Path) throw( ServiceUnreachable);
- CORBA::Object_ptr ResolveFirst(const char* Path) throw( ServiceUnreachable);
+ void Register(CORBA::Object_ptr ObjRef, const char* Path) ;
+ CORBA::Object_ptr Resolve(const char* Path) ;
+ CORBA::Object_ptr ResolveFirst(const char* Path) ;
CORBA::Object_ptr ResolveComponent(const char* hostname,
const char* containerName,
const char* componentName,
- const int nbproc=0) throw(ServiceUnreachable);
+ const int nbproc=0) ;
std::string ContainerName(const char *ContainerName);
std::string ContainerName(const Engines::ContainerParameters& params);
std::string BuildContainerNameForNS(const char *ContainerName, const char *hostname);
std::string BuildContainerNameForNS(const Engines::ContainerParameters& params, const char *hostname);
- int Find(const char* name) throw(ServiceUnreachable);
- bool Create_Directory(const char* Path) throw(ServiceUnreachable);
- bool Change_Directory(const char* Path) throw(ServiceUnreachable);
- char* Current_Directory() throw(ServiceUnreachable);
- void list() throw(ServiceUnreachable);
- std::vector<std::string> list_directory() throw(ServiceUnreachable);
- std::vector<std::string> list_subdirs() throw(ServiceUnreachable);
- std::vector<std::string> list_directory_recurs() throw(ServiceUnreachable);
- void Destroy_Name(const char* Path) throw(ServiceUnreachable);
- virtual void Destroy_Directory(const char* Path) throw(ServiceUnreachable);
- virtual void Destroy_FullDirectory(const char* Path) throw(ServiceUnreachable);
+ int Find(const char* name) ;
+ bool Create_Directory(const char* Path) ;
+ bool Change_Directory(const char* Path) ;
+ char* Current_Directory() ;
+ void list() ;
+ std::vector<std::string> list_directory() ;
+ std::vector<std::string> list_subdirs() ;
+ std::vector<std::string> list_directory_recurs() ;
+ void Destroy_Name(const char* Path) ;
+ virtual void Destroy_Directory(const char* Path) ;
+ virtual void Destroy_FullDirectory(const char* Path) ;
char *getIORaddr();
CORBA::ORB_ptr orb();
*/
//=============================================================================
-ResourcesManager_cpp::ResourcesManager_cpp() throw(ResourcesException)
+ResourcesManager_cpp::ResourcesManager_cpp()
{
RES_MESSAGE("ResourcesManager_cpp constructor");
//=============================================================================
std::vector<std::string>
-ResourcesManager_cpp::GetFittingResources(const resourceParams& params) throw(ResourcesException)
+ResourcesManager_cpp::GetFittingResources(const resourceParams& params)
{
RES_MESSAGE("[GetFittingResources] on computer " << Kernel_Utils::GetHostname().c_str());
RES_MESSAGE("[GetFittingResources] with resource name: " << params.name);
#ifdef WIN32
#pragma warning(disable:4251) // Warning DLL Interface ...
-#pragma warning(disable:4290) // Warning Exception ...
+//#pragma warning(disable:4290) // Warning Exception ...
#endif
// --- WARNING ---
public:
ResourcesManager_cpp(const char *xmlFilePath);
- ResourcesManager_cpp() throw(ResourcesException);
+ ResourcesManager_cpp() ;
~ResourcesManager_cpp();
std::vector<std::string>
- GetFittingResources(const resourceParams& params) throw(ResourcesException);
+ GetFittingResources(const resourceParams& params) ;
std::string Find(const std::string& policy, const std::vector<std::string>& listOfResources) const;
*/
//============================================================================
SALOMEDS_BasicAttribute_i* BasicAttributeFactory::Create(const char* type)
- throw (SALOME_Exception)
+
{
try {
if (!strcmp(type,"AttReal"))
virtual ~BasicAttributeFactory() {};
SALOMEDS_BasicAttribute_i* Create(const char* type)
- throw (SALOME_Exception);
+ ;
};
#endif
*/
//============================================================================
bool SALOMEDS_Study_i::Open(const wchar_t* aWUrl)
- throw(SALOME::SALOME_Exception)
+
{
if (!_closed)
Clear();
*/
//============================================================================
SALOMEDS::SObject_ptr SALOMEDS_Study_i::Paste(SALOMEDS::SObject_ptr theObject)
- throw(SALOMEDS::StudyBuilder::LockProtection)
+
{
SALOMEDS::Locker lock;
\param char* arguments, the study URL
\return bool arguments
*/
- virtual bool Open(const wchar_t* aStudyUrl) throw (SALOME::SALOME_Exception);
+ virtual bool Open(const wchar_t* aStudyUrl) ;
//! method to check that a Study can be opened
/*!
/*!
\param theObject object to paste
*/
- virtual SALOMEDS::SObject_ptr Paste(SALOMEDS::SObject_ptr theObject) throw(SALOMEDS::StudyBuilder::LockProtection);
+ virtual SALOMEDS::SObject_ptr Paste(SALOMEDS::SObject_ptr theObject) ;
virtual CORBA::Boolean CanPaste(SALOMEDS::SObject_ptr theObject);
//! method to Get persistent reference of study (idem URL())
};
template<class T, class U>
- typename SALOMESDS::AutoRefCountPtr<U> DynamicCast(typename SALOMESDS::AutoRefCountPtr<T>& autoSubPtr) throw()
+ typename SALOMESDS::AutoRefCountPtr<U> DynamicCast(typename SALOMESDS::AutoRefCountPtr<T>& autoSubPtr)
{
T *subPtr(autoSubPtr);
U *ptr(dynamic_cast<U *>(subPtr));
}
-CommException::~CommException() throw ()
+CommException::~CommException()
{
}
CommException( void );
CommException( const char *texte );
CommException( const CommException &ex );
- ~CommException() throw ();
+ ~CommException();
} ;
# endif /* # if ( !defined __Utils_CommException_H__ ) */
}
}
-CORBA::ORB_var &ORB_INIT::operator() ( int argc , char **argv ) throw( CommException )
+CORBA::ORB_var &ORB_INIT::operator() ( int argc , char **argv )
{
try {
if ( CORBA::is_nil( _orb ) )
#ifdef WIN32
#pragma warning(disable:4251) // Warning DLL Interface ...
-#pragma warning(disable:4290) // Warning Exception ...
+//#pragma warning(disable:4290) // Warning Exception ...
#endif
/*!
ORB_INIT( void );
virtual ~ORB_INIT();
void explicit_destroy();
- CORBA::ORB_var & operator() ( int argc , char **argv ) throw( CommException ) ;
+ CORBA::ORB_var & operator() ( int argc , char **argv );
inline CORBA::ORB_var &orb( void );
} ;
}
-SALOME_Exception::~SALOME_Exception() throw ()
+SALOME_Exception::~SALOME_Exception() noexcept
{
if ( _text )
{
-const char* SALOME_Exception::what( void ) const throw ()
+const char* SALOME_Exception::what( void ) const noexcept
{
return _text ;
}
public :
SALOME_Exception( const char *text, const char *fileName=0, const unsigned int lineNumber=0 );
SALOME_Exception( const SALOME_Exception &ex );
- virtual ~SALOME_Exception() throw ();
+ virtual ~SALOME_Exception() noexcept;
UTILS_EXPORT friend std::ostream & operator<<( std::ostream &os , const SALOME_Exception &ex );
- virtual const char *what( void ) const throw () ;
+ virtual const char *what( void ) const noexcept;
} ;