diff options
Diffstat (limited to 'java/demo/Freeze/library/Parser.java')
-rw-r--r-- | java/demo/Freeze/library/Parser.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/java/demo/Freeze/library/Parser.java b/java/demo/Freeze/library/Parser.java index 46e8cb9a607..ce63113e42e 100644 --- a/java/demo/Freeze/library/Parser.java +++ b/java/demo/Freeze/library/Parser.java @@ -209,6 +209,10 @@ class Parser { System.out.println("the book has already been rented."); } + catch(Ice.ObjectNotExistException ex) + { + System.out.println("current book no longer exists"); + } catch(Ice.LocalException ex) { error(ex.toString()); @@ -234,6 +238,10 @@ class Parser { System.out.println("the book is not currently rented."); } + catch(Ice.ObjectNotExistException ex) + { + System.out.println("current book no longer exists"); + } catch(Ice.LocalException ex) { error(ex.toString()); @@ -259,6 +267,10 @@ class Parser { error(ex.message); } + catch(Ice.ObjectNotExistException ex) + { + System.out.println("current book no longer exists"); + } catch(Ice.LocalException ex) { error(ex.toString()); |