diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-04-07 09:58:03 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-04-07 09:58:03 +0000 |
commit | 21fb1b352f775acab049aabfbbebb296216265e0 (patch) | |
tree | 6d0a1dd88a20aa476e4b14e846b61840eb9d58ef /shell/source/all/zipfile | |
parent | 4189dbdc8baf3f4dfd6fb39c878a537bb2c470b6 (diff) |
INTEGRATION: CWS desktintgr01 (1.1.2); FILE ADDED
2004/02/26 13:29:35 deuce 1.1.2.1: Issue number: 97686, 115531, 108219 restructure shxthdl module
Submitted by: Gorden Lin/gorden.lin@sun.com
Reviewed by: Tino Rachui/tino.rachui@sun.com
Diffstat (limited to 'shell/source/all/zipfile')
-rw-r--r-- | shell/source/all/zipfile/zipexcptn.hxx | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/shell/source/all/zipfile/zipexcptn.hxx b/shell/source/all/zipfile/zipexcptn.hxx new file mode 100644 index 000000000000..ff82e98152ab --- /dev/null +++ b/shell/source/all/zipfile/zipexcptn.hxx @@ -0,0 +1,78 @@ +// ZipException.h: interface for the ZipException class. +// +////////////////////////////////////////////////////////////////////// + +#ifndef ZIPEXCPTN_HXX_INCLUDED +#define ZIPEXCPTN_HXX_INCLUDED + +#include <stdexcept> + +//------------------------------------------ +/** +*/ +class RuntimeException : public std::exception +{ +public: + RuntimeException(int Error); + virtual ~RuntimeException(); + + int GetErrorCode() const; + +private: + int m_Error; +}; + +//------------------------------------------ +/** +*/ +class ZipException : public RuntimeException +{ +public: + ZipException(int Error); + + virtual const char* what() const throw(); +}; + +//------------------------------------------ +/** +*/ +class Win32Exception : public RuntimeException +{ +public: + Win32Exception(int Error); + virtual ~Win32Exception(); + + virtual const char* what() const throw(); + +private: + void* m_MsgBuff; +}; + +//------------------------------------------ +/** +*/ +class ZipContentMissException : public ZipException +{ +public: + ZipContentMissException(int Error); +}; + +//------------------------------------------ +/** +*/ +class AccessViolationException : public Win32Exception +{ +public: + AccessViolationException(int Error); +}; + +//------------------------------------------ +/** +*/ +class IOException : public Win32Exception +{ +public: + IOException(int Error); +}; + +#endif |