diff options
author | Mark Spruiell <mes@zeroc.com> | 2005-07-25 16:26:46 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2005-07-25 16:26:46 +0000 |
commit | e30644c12cff30ad87a37da5cf2ce3f6a9b67461 (patch) | |
tree | 4f6b59510a0bf73cb2480cd08a62bd70a3b0064e /java/src | |
parent | fix for bug 421 (diff) | |
download | ice-e30644c12cff30ad87a37da5cf2ce3f6a9b67461.tar.bz2 ice-e30644c12cff30ad87a37da5cf2ce3f6a9b67461.tar.xz ice-e30644c12cff30ad87a37da5cf2ce3f6a9b67461.zip |
another fix for UnknownUserException
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/Ice/_ObjectDelM.java | 52 |
1 files changed, 32 insertions, 20 deletions
diff --git a/java/src/Ice/_ObjectDelM.java b/java/src/Ice/_ObjectDelM.java index d9502f54ebd..c6301ce909d 100644 --- a/java/src/Ice/_ObjectDelM.java +++ b/java/src/Ice/_ObjectDelM.java @@ -34,14 +34,17 @@ public class _ObjectDelM implements _ObjectDel IceInternal.BasicStream __is = __og.is(); if(!__ok) { - __is.throwException(); + try + { + __is.throwException(); + } + catch(UserException __ex) + { + throw new UnknownUserException(__ex.ice_name()); + } } return __is.readBool(); } - catch(UserException __ex) - { - throw new UnknownUserException(__ex.ice_name()); - } catch(LocalException __ex) { throw new IceInternal.NonRepeatable(__ex); @@ -67,13 +70,16 @@ public class _ObjectDelM implements _ObjectDel IceInternal.BasicStream __is = __og.is(); if(!__ok) { - __is.throwException(); + try + { + __is.throwException(); + } + catch(UserException __ex) + { + throw new UnknownUserException(__ex.ice_name()); + } } } - catch(UserException __ex) - { - throw new UnknownUserException(__ex.ice_name()); - } catch(LocalException __ex) { throw new IceInternal.NonRepeatable(__ex); @@ -99,14 +105,17 @@ public class _ObjectDelM implements _ObjectDel IceInternal.BasicStream __is = __og.is(); if(!__ok) { - __is.throwException(); + try + { + __is.throwException(); + } + catch(UserException __ex) + { + throw new UnknownUserException(__ex.ice_name()); + } } return __is.readStringSeq(); } - catch(UserException __ex) - { - throw new UnknownUserException(__ex.ice_name()); - } catch(LocalException __ex) { throw new IceInternal.NonRepeatable(__ex); @@ -132,14 +141,17 @@ public class _ObjectDelM implements _ObjectDel IceInternal.BasicStream __is = __og.is(); if(!__ok) { - __is.throwException(); + try + { + __is.throwException(); + } + catch(UserException __ex) + { + throw new UnknownUserException(__ex.ice_name()); + } } return __is.readString(); } - catch(UserException __ex) - { - throw new UnknownUserException(__ex.ice_name()); - } catch(LocalException __ex) { throw new IceInternal.NonRepeatable(__ex); |