diff options
author | Matthew Newhook <matthew@zeroc.com> | 2009-01-12 13:24:42 -0330 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2009-01-12 13:24:42 -0330 |
commit | ccd83f8d813ca03a62eff8f2c3c360b3094c3be9 (patch) | |
tree | 11bc670c18a015c4c05184b63749f1a3d4169c87 /cpp/include/Slice/JavaUtil.h | |
parent | Squashed commit of the following: (diff) | |
download | ice-ccd83f8d813ca03a62eff8f2c3c360b3094c3be9.tar.bz2 ice-ccd83f8d813ca03a62eff8f2c3c360b3094c3be9.tar.xz ice-ccd83f8d813ca03a62eff8f2c3c360b3094c3be9.zip |
Squashed commit of the following:
commit 0c7025d761813d2e121e8573ba16c14e5a6a4ea5
Author: Matthew Newhook <matthew@zeroc.com>
Date: Mon Jan 12 08:09:36 2009 -0330
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=3396 slice2java fails silently if it cannot create dir
Diffstat (limited to 'cpp/include/Slice/JavaUtil.h')
-rw-r--r-- | cpp/include/Slice/JavaUtil.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/cpp/include/Slice/JavaUtil.h b/cpp/include/Slice/JavaUtil.h index 21921506775..5d4b3ebd7e0 100644 --- a/cpp/include/Slice/JavaUtil.h +++ b/cpp/include/Slice/JavaUtil.h @@ -16,6 +16,25 @@ namespace Slice { +class SLICE_API FileException : public ::IceUtil::Exception +{ +public: + + FileException(const char*, int, const std::string&); + ~FileException() throw(); + virtual std::string ice_name() const; + virtual void ice_print(std::ostream&) const; + virtual Exception* ice_clone() const; + virtual void ice_throw() const; + + std::string reason() const; + +private: + + static const char* _name; + const std::string _reason; +}; + class SLICE_API JavaOutput : public ::IceUtilInternal::Output { public: @@ -36,7 +55,7 @@ public: // printHeader() and then emits a "package" statement if // necessary. // - bool openClass(const std::string&, const std::string& = std::string()); + void openClass(const std::string&, const std::string& = std::string()); virtual void printHeader(); }; @@ -64,7 +83,7 @@ protected: // Given the fully-scoped Java class name, create any intermediate // package directories and open the class file // - bool open(const std::string&); + void open(const std::string&); ::IceUtilInternal::Output& output() const; |