summaryrefslogtreecommitdiff
path: root/DAnCE/tools
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2014-12-11 14:26:56 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2014-12-11 14:26:56 +0100
commit39668e74d887084a2295d7cf3d445e7c42d7704e (patch)
tree32b3862b94313e8abc5a7a2b45d8b6bced090426 /DAnCE/tools
parentcce2446f02f2e85d78067ff696b5d2c212de3ad4 (diff)
downloadATCD-39668e74d887084a2295d7cf3d445e7c42d7704e.tar.gz
Catch exceptions as const
* CIAO/ciao/Containers/Container_Base_T.cpp: * CIAO/ciao/Deployment/Handlers/Connection_Handler.cpp: * CIAO/ciao/Deployment/Handlers/Home_Handler.cpp: * CIAO/ciao/Deployment/Handlers/Homed_Component_Handler.cpp: * CIAO/ciao/Deployment/Interceptors/Deployment_Interceptors.cpp: * CIAO/ciao/Deployment/Interceptors/Name_Utilities.cpp: * CIAO/performance-tests/Protocols/Controller/Controller.cpp: * CIAO/performance-tests/Protocols/Sender/Sender_exec.cpp: * CIAO/tests/DAnCE/Components/Progressive_exec.cpp: * CIAO/tests/DAnCE/Components/SimpleLocalUser_exec.cpp: * CIAO/tests/DAnCE/Components/SimpleUser_exec.cpp: * CIAO/tests/DAnCE/LocalityManager/UnexpectedShutdown/UnexpectedShutdown_exec.cpp: * DAnCE/dance/DomainApplication/Domain_Application_Impl.cpp: * DAnCE/dance/DomainApplicationManager/DomainApplicationManager_Impl.cpp: * DAnCE/dance/ExecutionManager/ExecutionManager_Impl.cpp: * DAnCE/dance/ExecutionManager/ExecutionManager_Module.cpp: * DAnCE/dance/LocalityManager/Scheduler/Events/Action_Base.cpp: * DAnCE/dance/NodeApplication/NodeApplication_Impl.cpp: * DAnCE/dance/Plan_Launcher/Plan_Launcher.cpp: * DAnCE/dance/RepositoryManager/repository_manager_admin.cpp: * DAnCE/dance/TargetManager/DomainDataManager.cpp: * DAnCE/dance/TargetManager/Target_Manager_Module.cpp: * DAnCE/tests/TargetManager/CmpClient.cpp: * DAnCE/tools/Config_Handlers/Any_Handler.cpp: * DAnCE/tools/Config_Handlers/XML_File_Intf.cpp: * DAnCE/tools/Domain_Validator/CORBA/CORBA_Domain_Validator_impl.cpp: * DAnCE/tools/System_Health/Interceptors/SHS_CORBA_Transport.cpp: * TAO/docs/tutorials/Quoter/AMI/client.cpp: * TAO/docs/tutorials/Quoter/AMI/server.cpp: * TAO/docs/tutorials/Quoter/Event_Service/client.cpp: * TAO/docs/tutorials/Quoter/Event_Service/server.cpp: * TAO/docs/tutorials/Quoter/Naming_Service/client.cpp: * TAO/docs/tutorials/Quoter/Naming_Service/server.cpp: * TAO/docs/tutorials/Quoter/On_Demand_Activation/client.cpp: * TAO/docs/tutorials/Quoter/On_Demand_Activation/server.cpp: * TAO/docs/tutorials/Quoter/RTCORBA/Admin.cpp: * TAO/docs/tutorials/Quoter/RTCORBA/Broker.cpp: * TAO/docs/tutorials/Quoter/RTCORBA/Distributor.cpp: * TAO/docs/tutorials/Quoter/RTCORBA/Distributor_i.cpp: * TAO/docs/tutorials/Quoter/RTCORBA/StockNameConsumer_i.cpp: * TAO/docs/tutorials/Quoter/RTCORBA/docs/distributor.html: * TAO/docs/tutorials/Quoter/RT_Event_Service/client.cpp: * TAO/docs/tutorials/Quoter/RT_Event_Service/server.cpp: * TAO/docs/tutorials/Quoter/Simple/Client/client.cpp: * TAO/docs/tutorials/Quoter/Simple/Client/index.html: * TAO/docs/tutorials/Quoter/Simple/Impl-Repo/client.cpp: * TAO/docs/tutorials/Quoter/Simple/Impl-Repo/server.cpp: * TAO/docs/tutorials/Quoter/Simple/ImprovedServer/server.cpp: * TAO/docs/tutorials/Quoter/Simple/Persistent/client.cpp: * TAO/docs/tutorials/Quoter/Simple/Persistent/server.cpp: * TAO/docs/tutorials/Quoter/Simple/Server/index.html: * TAO/docs/tutorials/Quoter/Simple/Server/server.cpp: * TAO/examples/Borland/ChatClient.cpp: * TAO/examples/Borland/ChatClientWnd.cpp: * TAO/examples/Borland/ORBThread.cpp: * TAO/examples/RTScheduling/MIF_Scheduler/MIF_DT_Creator.cpp: * TAO/orbsvcs/IFR_Service/be_produce.cpp: * TAO/orbsvcs/Notify_Service/Notify_Service.cpp: * TAO/orbsvcs/examples/ImR/Advanced/TestClient.cpp: * TAO/orbsvcs/examples/ImR/Advanced/client_main.cpp: * TAO/orbsvcs/examples/ImR/Advanced/manager_main.cpp: * TAO/orbsvcs/examples/ImR/Advanced/server_main.cpp: * TAO/orbsvcs/examples/ImR/Combined_Service/combined.cpp: * TAO/orbsvcs/examples/ImR/Combined_Service/controller.cpp: * TAO/orbsvcs/examples/ImR/Combined_Service/test.cpp: * TAO/orbsvcs/examples/ImR/Combined_Service/test_server.cpp: * TAO/orbsvcs/examples/ORT/Gateway_i.cpp: * TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.cpp: * TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.cpp: * TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.cpp: * TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp: * TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_PG_Object_Group_Storable.cpp: * TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Persistent_Naming_Context.cpp: * TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context.cpp: * TAO/orbsvcs/orbsvcs/Notify/Consumer.cpp: * TAO/orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.cpp: * TAO/orbsvcs/orbsvcs/Notify/Supplier.cpp: * TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.cpp: * TAO/orbsvcs/tests/Bug_2800_Regression/nsmain.cpp: * TAO/orbsvcs/tests/Bug_2800_Regression/server.cpp: * TAO/orbsvcs/tests/Bug_3215_Regression/client.cpp: * TAO/orbsvcs/tests/Bug_3216_Regression/client.cpp: * TAO/orbsvcs/tests/Bug_3673_Regression/nsmain.cpp: * TAO/orbsvcs/tests/Bug_3673_Regression/server.cpp: * TAO/orbsvcs/tests/COIOP_Naming_Test/NamingTask.cpp: * TAO/orbsvcs/tests/CosEvent/Timeout/TestEventConsumer_i.cpp: * TAO/orbsvcs/tests/CosEvent/Timeout/TimeoutTestMain.cpp: * TAO/orbsvcs/tests/Event/Mcast/AddrServer/Server.cpp: * TAO/orbsvcs/tests/Event/Mcast/RTEC_MCast_Federated/EchoEventConsumerMain.cpp: * TAO/orbsvcs/tests/Event/Mcast/RTEC_MCast_Federated/EchoEventSupplierMain.cpp: * TAO/orbsvcs/tests/FT_Naming/FaultTolerant/client.cpp: * TAO/orbsvcs/tests/FT_Naming/Federation/server.cpp: * TAO/orbsvcs/tests/FT_Naming/Load_Balancing/client.cpp: * TAO/orbsvcs/tests/ImplRepo/Bug_2604_Regression/MessengerClient.cpp: * TAO/orbsvcs/tests/ImplRepo/Bug_2604_Regression/MessengerServer.cpp: * TAO/orbsvcs/tests/ImplRepo/NotifyService/test.cpp: * TAO/orbsvcs/tests/ImplRepo/double_start/client.cpp: * TAO/orbsvcs/tests/ImplRepo/ping_interrupt/server_interceptor.cpp: * TAO/orbsvcs/tests/ImplRepo/servers_interact_on_startup/client.cpp: * TAO/orbsvcs/tests/ImplRepo/servers_interact_on_startup/server.cpp: * TAO/orbsvcs/tests/InterfaceRepo/Bug_2962_Regression/client.cpp: * TAO/orbsvcs/tests/InterfaceRepo/Bug_3155_Regression/test_idl.cpp: * TAO/orbsvcs/tests/InterfaceRepo/Bug_3174_Regression/test_idl.cpp: * TAO/orbsvcs/tests/Notify/Bug_1884_Regression/common.h: * TAO/orbsvcs/tests/Notify/Bug_1884_Regression/consumer.cpp: * TAO/orbsvcs/tests/Notify/Bug_1884_Regression/filter.cpp: * TAO/orbsvcs/tests/Notify/Bug_1884_Regression/supplier.cpp: * TAO/orbsvcs/tests/Notify/Bug_3688_Regression/common.h: * TAO/orbsvcs/tests/Notify/Bug_3688_Regression/consumer.cpp: * TAO/orbsvcs/tests/Notify/Bug_3688_Regression/supplier.cpp: * TAO/orbsvcs/tests/Notify/Test_Filter/RT_Test_FilterFactory.cpp: * TAO/orbsvcs/tests/Security/Bug_1107_Regression/client.cpp: * TAO/orbsvcs/tests/Security/EndpointPolicy/test.cpp: * TAO/orbsvcs/tests/Security/InsecureReferences/test.cpp: * TAO/orbsvcs/tests/Security/mixed_security_test/Foo_i.cpp: * TAO/orbsvcs/tests/Security/mixed_security_test/client.cpp: * TAO/orbsvcs/tests/Security/mixed_security_test/server.cpp: * TAO/performance-tests/Sequence_Latency/Sequence_Operations_Time/test.cpp: * TAO/tao/IORTable/Async_IOR_Table_Impl.cpp: * TAO/tests/Bug_2241_Regression/Client_Task.cpp: * TAO/tests/Bug_2345_Regression/server.cpp: * TAO/tests/Bug_2494_Regression/client.cpp: * TAO/tests/Bug_2494_Regression/server.cpp: * TAO/tests/Bug_2560_Regression/Stock_Factory_i.cpp: * TAO/tests/Bug_2560_Regression/client.cpp: * TAO/tests/Bug_2560_Regression/server.cpp: * TAO/tests/Bug_2654_Regression/client.cpp: * TAO/tests/Bug_2683_Regression/client.cpp: * TAO/tests/Bug_2683_Regression/server.cpp: * TAO/tests/Bug_2809_Regression/server.cpp: * TAO/tests/Bug_3068_Regression/client.cpp: * TAO/tests/Bug_3068_Regression/server.cpp: * TAO/tests/Bug_3068_Regression/test_i.cpp: * TAO/tests/Bug_3276_Regression/client.cpp: * TAO/tests/Bug_3531_Regression/client.cpp: * TAO/tests/Bug_3531_Regression/server.cpp: * TAO/tests/Bug_3531b_Regression/server.cpp: * TAO/tests/Bug_3547_Regression/Stock_Quoter_Client.cpp: * TAO/tests/Bug_3547_Regression/Stock_Quoter_Server.cpp: * TAO/tests/Bug_3755_Ext_Regression/common.cpp: * TAO/tests/Bug_3755_Regression/server.cpp: * TAO/tests/Bug_3826_Regression/server.cpp: * TAO/tests/Bug_933_Regression/Messenger_i.cpp: * TAO/tests/Collocated_ThruP_Sp/Client_Task.cpp: * TAO/tests/Collocated_ThruP_Sp_Gd/Client_Task.cpp: * TAO/tests/CollocationLockup/CollocationLockup.cpp: * TAO/tests/CollocationLockup/SimpleNamingService.cpp: * TAO/tests/DII_AMI_Forward/DII_ReplyHandler.cpp: * TAO/tests/DII_AMI_Forward/client.cpp: * TAO/tests/DSI_AMI_Gateway/My_DII_Reply_Handler.cpp: * TAO/tests/Dynamic_TP/ORB_ThreadPool/Client.cpp: * TAO/tests/Dynamic_TP/POA_Loader/Dynamic_TP_POA_Test_Dynamic/client.cpp: * TAO/tests/Dynamic_TP/POA_Loader/Dynamic_TP_POA_Test_Static/client.cpp: * TAO/tests/MT_NoUpcall_Connect/client.cpp: * TAO/tests/Native_Exceptions/client.cpp: * TAO/tests/Native_Exceptions/server.cpp: * TAO/tests/Oneway_Send_Timeouts/Client.cpp: * TAO/tests/Oneway_Timeouts/client.cpp: * TAO/tests/Oneway_Timeouts/server.cpp: * TAO/tests/POA/EndpointPolicy/server.cpp: * TAO/tests/POA/Persistent_ID/client.cpp: * TAO/tests/Param_Test/except.cpp: * TAO/tests/Storable/test.cpp: * TAO/tests/UNKNOWN_Exception/client.cpp: * TAO/utils/monitor/monitor_client.cpp:
Diffstat (limited to 'DAnCE/tools')
-rw-r--r--DAnCE/tools/Config_Handlers/Any_Handler.cpp2
-rw-r--r--DAnCE/tools/Config_Handlers/XML_File_Intf.cpp4
-rw-r--r--DAnCE/tools/Domain_Validator/CORBA/CORBA_Domain_Validator_impl.cpp6
-rw-r--r--DAnCE/tools/System_Health/Interceptors/SHS_CORBA_Transport.cpp4
4 files changed, 8 insertions, 8 deletions
diff --git a/DAnCE/tools/Config_Handlers/Any_Handler.cpp b/DAnCE/tools/Config_Handlers/Any_Handler.cpp
index 2ffc3d43a06..1b6ad2d6ca8 100644
--- a/DAnCE/tools/Config_Handlers/Any_Handler.cpp
+++ b/DAnCE/tools/Config_Handlers/Any_Handler.cpp
@@ -40,7 +40,7 @@ namespace DAnCE
dyn->destroy ();
}
- catch (CORBA::Exception &ex)
+ catch (const CORBA::Exception &ex)
{
DANCE_ERROR (DANCE_LOG_TERMINAL_ERROR, (LM_ERROR, DLINFO
ACE_TEXT ("Any_Handler::extract_into_any -")
diff --git a/DAnCE/tools/Config_Handlers/XML_File_Intf.cpp b/DAnCE/tools/Config_Handlers/XML_File_Intf.cpp
index 75524254e00..2fd41f856ea 100644
--- a/DAnCE/tools/Config_Handlers/XML_File_Intf.cpp
+++ b/DAnCE/tools/Config_Handlers/XML_File_Intf.cpp
@@ -78,7 +78,7 @@ namespace DAnCE
if (this->idl_dp_.get ())
return true;
}
- catch (CORBA::Exception &ex)
+ catch (const CORBA::Exception &ex)
{
DANCE_ERROR (DANCE_LOG_TERMINAL_ERROR,
(LM_ERROR, DLINFO ACE_TEXT ("XML_File_Intf::caught - ")
@@ -152,7 +152,7 @@ namespace DAnCE
if (this->idl_domain_.get ())
return true;
}
- catch (CORBA::Exception &ex)
+ catch (const CORBA::Exception &ex)
{
DANCE_ERROR (DANCE_LOG_TERMINAL_ERROR,
(LM_ERROR, DLINFO ACE_TEXT ("XML_File_Intf::caught - ")
diff --git a/DAnCE/tools/Domain_Validator/CORBA/CORBA_Domain_Validator_impl.cpp b/DAnCE/tools/Domain_Validator/CORBA/CORBA_Domain_Validator_impl.cpp
index cb2ab454255..29c625e777b 100644
--- a/DAnCE/tools/Domain_Validator/CORBA/CORBA_Domain_Validator_impl.cpp
+++ b/DAnCE/tools/Domain_Validator/CORBA/CORBA_Domain_Validator_impl.cpp
@@ -162,7 +162,7 @@ DAnCE_Domain_Validator_i::validate_node (const char * node_name)
return false;
}
}
- catch (CORBA::Exception &ex)
+ catch (const CORBA::Exception &ex)
{
DANCE_DEBUG (DANCE_LOG_EVENT_TRACE,
(LM_DEBUG, DLINFO
@@ -255,7 +255,7 @@ DAnCE_Domain_Validator_i::block_for_node (const char * node_name,
if (!CORBA::is_nil (obj))
break;
}
- catch (CORBA::Exception &ex)
+ catch (const CORBA::Exception &ex)
{
DANCE_ERROR (DANCE_LOG_WARNING,
(LM_ERROR, DLINFO, ACE_TEXT ("Plan_Launcher - ")
@@ -283,7 +283,7 @@ DAnCE_Domain_Validator_i::block_for_node (const char * node_name,
if (!non_existant)
break;
}
- catch (CORBA::Exception &ex)
+ catch (const CORBA::Exception &ex)
{
DANCE_ERROR (DANCE_LOG_WARNING,
(LM_ERROR, DLINFO, ACE_TEXT ("Plan_Launcher - ")
diff --git a/DAnCE/tools/System_Health/Interceptors/SHS_CORBA_Transport.cpp b/DAnCE/tools/System_Health/Interceptors/SHS_CORBA_Transport.cpp
index c121dc89897..6570ece265a 100644
--- a/DAnCE/tools/System_Health/Interceptors/SHS_CORBA_Transport.cpp
+++ b/DAnCE/tools/System_Health/Interceptors/SHS_CORBA_Transport.cpp
@@ -93,7 +93,7 @@ namespace DAnCE
ACE_TEXT ("SHS_CORBA_Transport::configure - ")
ACE_TEXT ("Unable to resolve SHS Daemon\n")));
}
- catch (CORBA::Exception &ex)
+ catch (const CORBA::Exception &ex)
{
DANCE_ERROR (DANCE_LOG_ERROR, (LM_NOTICE, DLINFO
ACE_TEXT ("SHS_CORBA_Transport::configure - ")
@@ -129,7 +129,7 @@ namespace DAnCE
ACE_TEXT (" nil daemon ref\n")));
}
- catch (CORBA::Exception &ex)
+ catch (const CORBA::Exception &ex)
{
DANCE_ERROR (DANCE_LOG_ERROR, (LM_ERROR, DLINFO
ACE_TEXT ("SHS_CORBA_Transport::push_event - ")