summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/ReferenceFactory.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2007-03-28 13:03:10 +0000
committerBenoit Foucher <benoit@zeroc.com>2007-03-28 13:03:10 +0000
commit5288de3d337912f4c9b1f62f36b8c67a21b1e0a1 (patch)
treeed6e45edcd38441db650172b26f4b1a9ef658b29 /cppe/src/IceE/ReferenceFactory.cpp
parentRemove identityToString/stringToIdentity (diff)
downloadice-5288de3d337912f4c9b1f62f36b8c67a21b1e0a1.tar.bz2
ice-5288de3d337912f4c9b1f62f36b8c67a21b1e0a1.tar.xz
ice-5288de3d337912f4c9b1f62f36b8c67a21b1e0a1.zip
FeatureNotSupportedException is now raised instead of ProxyParseException
if parsing an indirect proxy and locator support isn't built-in.
Diffstat (limited to 'cppe/src/IceE/ReferenceFactory.cpp')
-rw-r--r--cppe/src/IceE/ReferenceFactory.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/cppe/src/IceE/ReferenceFactory.cpp b/cppe/src/IceE/ReferenceFactory.cpp
index ee25d3c5919..cadc362c16b 100644
--- a/cppe/src/IceE/ReferenceFactory.cpp
+++ b/cppe/src/IceE/ReferenceFactory.cpp
@@ -437,12 +437,11 @@ IceInternal::ReferenceFactory::create(const string& str)
return create(ident, _instance->getDefaultContext(), facet, mode, secure, "", locatorInfo);
# endif
#else
- ProxyParseException ex(__FILE__, __LINE__);
- ex.str = str;
- throw ex;
+ FeatureNotSupportedException ex(__FILE__, __LINE__);
+ ex.unsupportedFeature = "indirect proxy `" + str + "' (no locator support built-in)";
+ throw ex;
#endif
}
-
vector<EndpointPtr> endpoints;
switch(s[beg])
@@ -501,9 +500,9 @@ IceInternal::ReferenceFactory::create(const string& str)
break;
}
-#ifdef ICEE_HAS_LOCATOR
case '@':
{
+#ifdef ICEE_HAS_LOCATOR
beg = s.find_first_not_of(delim, beg + 1);
if(beg == string::npos)
{
@@ -546,9 +545,14 @@ IceInternal::ReferenceFactory::create(const string& str)
return create(ident, _instance->getDefaultContext(), facet, mode, secure, adapter,
locatorInfo);
#endif
+#else
+ FeatureNotSupportedException ex(__FILE__, __LINE__);
+ ex.unsupportedFeature = "indirect proxy `" + str + "' (no locator support built-in)";
+ throw ex;
+#endif
break;
}
-#endif
+
default:
{
ProxyParseException ex(__FILE__, __LINE__);