diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-01-16 22:22:44 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-01-16 22:22:44 +0000 |
commit | 00081d77200a08baac2e62cc2797c7530caacea3 (patch) | |
tree | 69a638dc86939389e9c810946a7d0fef20a31cd4 /cpp/src/FreezeScript/Exception.h | |
parent | adding ClassDef::isA (diff) | |
download | ice-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.h | 43 |
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 |