summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/ExceptionFactory.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-12-05 22:31:29 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-12-05 22:31:29 +0000
commit7abe0bb2e951d22f67f34d38bd4892f30ad901bb (patch)
tree4844d8f0ed9c4988f5ec8988aa313b1f47f15162 /cpp/src/IcePack/ExceptionFactory.cpp
parentAdded support for object lookup by identity (diff)
downloadice-7abe0bb2e951d22f67f34d38bd4892f30ad901bb.tar.bz2
ice-7abe0bb2e951d22f67f34d38bd4892f30ad901bb.tar.xz
ice-7abe0bb2e951d22f67f34d38bd4892f30ad901bb.zip
Added IcePack object registry.
Added support for locator object lookup by identity. Added Query interface to lookup objects by type. Changed the IcePack.Registry.Locator properties to IcePack.Registry.Client Changed the IcePack.Registry.LocatorRegistry properties to IcePack.Registry.Se rver Added IcePack demo Minor fixes and clean-up
Diffstat (limited to 'cpp/src/IcePack/ExceptionFactory.cpp')
-rw-r--r--cpp/src/IcePack/ExceptionFactory.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/IcePack/ExceptionFactory.cpp b/cpp/src/IcePack/ExceptionFactory.cpp
index 310d8d65427..a97b9b456f8 100644
--- a/cpp/src/IcePack/ExceptionFactory.cpp
+++ b/cpp/src/IcePack/ExceptionFactory.cpp
@@ -24,6 +24,7 @@ IcePack::ExceptionFactory::ExceptionFactory(const Ice::CommunicatorPtr& communic
communicator->addUserExceptionFactory(this, "::IcePack::ParserDeploymentException");
communicator->addUserExceptionFactory(this, "::IcePack::AdapterDeploymentException");
communicator->addUserExceptionFactory(this, "::IcePack::ServerDeploymentException");
+ communicator->addUserExceptionFactory(this, "::IcePack::ObjectDeploymentException");
communicator->addUserExceptionFactory(this, "::IcePack::OfferDeploymentException");
}
@@ -46,6 +47,10 @@ IcePack::ExceptionFactory::createAndThrow(const string& type)
{
throw OfferDeploymentException();
}
+ else if(type == "::IcePack::ObjectDeploymentException")
+ {
+ throw ObjectDeploymentException();
+ }
else if(type == "::IcePack::ServerDeploymentException")
{
throw ServerDeploymentException();