summaryrefslogtreecommitdiff
path: root/cpp/src/FreezeScript/Exception.h
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2004-01-16 22:22:44 +0000
committerMark Spruiell <mes@zeroc.com>2004-01-16 22:22:44 +0000
commit00081d77200a08baac2e62cc2797c7530caacea3 (patch)
tree69a638dc86939389e9c810946a7d0fef20a31cd4 /cpp/src/FreezeScript/Exception.h
parentadding ClassDef::isA (diff)
downloadice-00081d77200a08baac2e62cc2797c7530caacea3.tar.bz2
ice-00081d77200a08baac2e62cc2797c7530caacea3.tar.xz
ice-00081d77200a08baac2e62cc2797c7530caacea3.zip
initial check-in
Diffstat (limited to 'cpp/src/FreezeScript/Exception.h')
-rw-r--r--cpp/src/FreezeScript/Exception.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/cpp/src/FreezeScript/Exception.h b/cpp/src/FreezeScript/Exception.h
new file mode 100644
index 00000000000..c3ab406ffb9
--- /dev/null
+++ b/cpp/src/FreezeScript/Exception.h
@@ -0,0 +1,43 @@
+// **********************************************************************
+//
+// Copyright (c) 2004
+// ZeroC, Inc.
+// Billerica, MA, USA
+//
+// All Rights Reserved.
+//
+// Ice is free software; you can redistribute it and/or modify it under
+// the terms of the GNU General Public License version 2 as published by
+// the Free Software Foundation.
+//
+// **********************************************************************
+
+#ifndef FREEZE_SCRIPT_EXCEPTION_H
+#define FREEZE_SCRIPT_EXCEPTION_H
+
+#include <IceUtil/Exception.h>
+
+namespace FreezeScript
+{
+
+class Exception : public IceUtil::Exception
+{
+public:
+
+ Exception(const char*, int, const std::string&);
+ virtual const std::string& ice_name() const;
+ virtual void ice_print(std::ostream&) const;
+ virtual IceUtil::Exception* ice_clone() const;
+ virtual void ice_throw() const;
+
+ std::string reason() const;
+
+private:
+
+ std::string _reason;
+ static std::string _name;
+};
+
+} // End of namespace FreezeScript
+
+#endif