diff options
author | 2016-02-01 11:58:17 +0200 | |
---|---|---|
committer | 2016-02-01 11:58:17 +0200 | |
commit | 00d74df1d05ce2b47d37574fda8806d71841d3e9 (patch) | |
tree | 032d4457292ec4e3021a67ac5ddb90683da059ec /src/rpc-server/commands/trex_rpc_cmd_general.cpp | |
parent | dcacbb143335db3c6939e2d9dd87055c323e4ab3 (diff) | |
parent | f9dcbd38e90601f5571bb5bcfb67170876ecd3c6 (diff) |
Merge from origin
Diffstat (limited to 'src/rpc-server/commands/trex_rpc_cmd_general.cpp')
-rw-r--r-- | src/rpc-server/commands/trex_rpc_cmd_general.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpc-server/commands/trex_rpc_cmd_general.cpp b/src/rpc-server/commands/trex_rpc_cmd_general.cpp index 66999144..084e154a 100644 --- a/src/rpc-server/commands/trex_rpc_cmd_general.cpp +++ b/src/rpc-server/commands/trex_rpc_cmd_general.cpp @@ -243,7 +243,7 @@ TrexRpcCmdAcquire::_run(const Json::Value ¶ms, Json::Value &result) { try { port->acquire(new_owner, session_id, force); - } catch (const TrexRpcException &ex) { + } catch (const TrexException &ex) { generate_execute_err(result, ex.what()); } @@ -265,7 +265,7 @@ TrexRpcCmdRelease::_run(const Json::Value ¶ms, Json::Value &result) { try { port->release(); - } catch (const TrexRpcException &ex) { + } catch (const TrexException &ex) { generate_execute_err(result, ex.what()); } @@ -287,7 +287,7 @@ TrexRpcCmdGetPortStats::_run(const Json::Value ¶ms, Json::Value &result) { try { port->encode_stats(result["result"]); - } catch (const TrexRpcException &ex) { + } catch (const TrexException &ex) { generate_execute_err(result, ex.what()); } |