diff options
Diffstat (limited to 'java/demo/Database/library/Library.ice')
-rw-r--r-- | java/demo/Database/library/Library.ice | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/java/demo/Database/library/Library.ice b/java/demo/Database/library/Library.ice index 0c2e7a1b39c..37dc6e308a7 100644 --- a/java/demo/Database/library/Library.ice +++ b/java/demo/Database/library/Library.ice @@ -54,6 +54,15 @@ exception InvalidCustomerException /** * + * This exception is raised if the ISBN is invalid. + * + **/ +exception InvalidISBNException +{ +}; + +/** + * * This exception is raised if the book has not been rented. * **/ @@ -279,7 +288,7 @@ interface Library **/ Book* createBook(string isbn, string title, ["java:type:java.util.LinkedList<String>:java.util.List<String>"] Ice::StringSeq authors) - throws BookExistsException; + throws BookExistsException, InvalidISBNException; }; }; |