summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/TcpEndpoint.java
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-10-01 03:15:57 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-10-01 03:15:57 +0000
commit8138f14b803970f858deb07c9303629fe1e364e8 (patch)
treea0563d02ff93cfcdc2040863f404cdcdacaa8226 /java/src/IceInternal/TcpEndpoint.java
parentImproved few local exceptions and evictor fix. (diff)
downloadice-8138f14b803970f858deb07c9303629fe1e364e8.tar.bz2
ice-8138f14b803970f858deb07c9303629fe1e364e8.tar.xz
ice-8138f14b803970f858deb07c9303629fe1e364e8.zip
Improved few local exception + evictor fix.
Diffstat (limited to 'java/src/IceInternal/TcpEndpoint.java')
-rw-r--r--java/src/IceInternal/TcpEndpoint.java28
1 files changed, 21 insertions, 7 deletions
diff --git a/java/src/IceInternal/TcpEndpoint.java b/java/src/IceInternal/TcpEndpoint.java
index d90882691fa..34e1db359de 100644
--- a/java/src/IceInternal/TcpEndpoint.java
+++ b/java/src/IceInternal/TcpEndpoint.java
@@ -46,7 +46,9 @@ final class TcpEndpoint implements Endpoint
String option = arr[i++];
if(option.length() != 2 || option.charAt(0) != '-')
{
- throw new Ice.EndpointParseException();
+ Ice.EndpointParseException e = new Ice.EndpointParseException();
+ e.str = "tcp " + str;
+ throw e;
}
String argument = null;
@@ -61,7 +63,9 @@ final class TcpEndpoint implements Endpoint
{
if(argument == null)
{
- throw new Ice.EndpointParseException();
+ Ice.EndpointParseException e = new Ice.EndpointParseException();
+ e.str = "tcp " + str;
+ throw e;
}
_host = argument;
@@ -72,7 +76,9 @@ final class TcpEndpoint implements Endpoint
{
if(argument == null)
{
- throw new Ice.EndpointParseException();
+ Ice.EndpointParseException e = new Ice.EndpointParseException();
+ e.str = "tcp " + str;
+ throw e;
}
try
@@ -81,7 +87,9 @@ final class TcpEndpoint implements Endpoint
}
catch(NumberFormatException ex)
{
- throw new Ice.EndpointParseException();
+ Ice.EndpointParseException e = new Ice.EndpointParseException();
+ e.str = "tcp " + str;
+ throw e;
}
break;
@@ -91,7 +99,9 @@ final class TcpEndpoint implements Endpoint
{
if(argument == null)
{
- throw new Ice.EndpointParseException();
+ Ice.EndpointParseException e = new Ice.EndpointParseException();
+ e.str = "tcp " + str;
+ throw e;
}
try
@@ -100,7 +110,9 @@ final class TcpEndpoint implements Endpoint
}
catch(NumberFormatException ex)
{
- throw new Ice.EndpointParseException();
+ Ice.EndpointParseException e = new Ice.EndpointParseException();
+ e.str = "tcp " + str;
+ throw e;
}
break;
@@ -108,7 +120,9 @@ final class TcpEndpoint implements Endpoint
default:
{
- throw new Ice.EndpointParseException();
+ Ice.EndpointParseException e = new Ice.EndpointParseException();
+ e.str = "tcp " + str;
+ throw e;
}
}
}