diff options
Diffstat (limited to 'cpp/src/Ice/Direct.cpp')
-rw-r--r-- | cpp/src/Ice/Direct.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cpp/src/Ice/Direct.cpp b/cpp/src/Ice/Direct.cpp index d4ae9056c49..3e3416f4c6e 100644 --- a/cpp/src/Ice/Direct.cpp +++ b/cpp/src/Ice/Direct.cpp @@ -13,7 +13,7 @@ #include <Ice/ServantLocator.h> #include <Ice/Reference.h> #include <Ice/Object.h> -#include <Ice/Exception.h> +#include <Ice/LocalException.h> using namespace std; using namespace Ice; @@ -50,7 +50,9 @@ IceInternal::Direct::Direct(const ObjectAdapterPtr& adapter, const Current& curr _facetServant = _servant->ice_findFacet(_current.facet); if (!_facetServant) { - throw FacetNotExistException(__FILE__, __LINE__); + FacetNotExistException ex(__FILE__, __LINE__); + ex.facet = _current.facet; + throw ex; } } } @@ -65,7 +67,9 @@ IceInternal::Direct::Direct(const ObjectAdapterPtr& adapter, const Current& curr if(!_servant) { - throw ObjectNotExistException(__FILE__, __LINE__); + ObjectNotExistException ex(__FILE__, __LINE__); + ex.identity = _current.identity; + throw ex; } } |