summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/TcpEndpoint.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-10-01 03:15:11 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-10-01 03:15:11 +0000
commitbfb305ce183f070aa793657cb72a5ae5460044ae (patch)
treebdcd2b9e31da0b036a135e114e1c9724a37a1290 /cpp/src/Ice/TcpEndpoint.cpp
parentfix (diff)
downloadice-bfb305ce183f070aa793657cb72a5ae5460044ae.tar.bz2
ice-bfb305ce183f070aa793657cb72a5ae5460044ae.tar.xz
ice-bfb305ce183f070aa793657cb72a5ae5460044ae.zip
Improved few local exceptions and evictor fix.
Diffstat (limited to 'cpp/src/Ice/TcpEndpoint.cpp')
-rw-r--r--cpp/src/Ice/TcpEndpoint.cpp20
1 files changed, 15 insertions, 5 deletions
diff --git a/cpp/src/Ice/TcpEndpoint.cpp b/cpp/src/Ice/TcpEndpoint.cpp
index 71cc62db29e..260d41c24f6 100644
--- a/cpp/src/Ice/TcpEndpoint.cpp
+++ b/cpp/src/Ice/TcpEndpoint.cpp
@@ -57,7 +57,9 @@ IceInternal::TcpEndpoint::TcpEndpoint(const InstancePtr& instance, const string&
string option = str.substr(beg, end - beg);
if(option.length() != 2 || option[0] != '-')
{
- throw EndpointParseException(__FILE__, __LINE__);
+ EndpointParseException ex(__FILE__, __LINE__);
+ ex.str = "tcp " + str;
+ throw ex;
}
string argument;
@@ -79,7 +81,9 @@ IceInternal::TcpEndpoint::TcpEndpoint(const InstancePtr& instance, const string&
{
if(argument.empty())
{
- throw EndpointParseException(__FILE__, __LINE__);
+ EndpointParseException ex(__FILE__, __LINE__);
+ ex.str = "tcp " + str;
+ throw ex;
}
const_cast<string&>(_host) = argument;
break;
@@ -90,7 +94,9 @@ IceInternal::TcpEndpoint::TcpEndpoint(const InstancePtr& instance, const string&
istringstream p(argument);
if(!(p >> const_cast<Int&>(_port)) || !p.eof())
{
- throw EndpointParseException(__FILE__, __LINE__);
+ EndpointParseException ex(__FILE__, __LINE__);
+ ex.str = "tcp " + str;
+ throw ex;
}
break;
}
@@ -100,14 +106,18 @@ IceInternal::TcpEndpoint::TcpEndpoint(const InstancePtr& instance, const string&
istringstream t(argument);
if(!(t >> const_cast<Int&>(_timeout)) || !t.eof())
{
- throw EndpointParseException(__FILE__, __LINE__);
+ EndpointParseException ex(__FILE__, __LINE__);
+ ex.str = "tcp " + str;
+ throw ex;
}
break;
}
default:
{
- throw EndpointParseException(__FILE__, __LINE__);
+ EndpointParseException ex(__FILE__, __LINE__);
+ ex.str = "tcp " + str;
+ throw ex;
}
}
}