Update ooo320-m1
[ooovba.git] / shell / source / all / zipfile / zipexcptn.hxx
blob33521b42e33d7b8a5937f5d9053cf4c29e69aea1
1 // ZipException.h: interface for the ZipException class.
2 //
3 //////////////////////////////////////////////////////////////////////
5 #ifndef ZIPEXCPTN_HXX_INCLUDED
6 #define ZIPEXCPTN_HXX_INCLUDED
8 #include <stdexcept>
10 //------------------------------------------
11 /**
13 class RuntimeException : public std::exception
15 public:
16 RuntimeException(int Error);
17 virtual ~RuntimeException() throw();
19 int GetErrorCode() const;
21 private:
22 int m_Error;
25 //------------------------------------------
26 /**
28 class ZipException : public RuntimeException
30 public:
31 ZipException(int Error);
33 virtual const char* what() const throw();
36 //------------------------------------------
37 /**
39 class Win32Exception : public RuntimeException
41 public:
42 Win32Exception(int Error);
43 virtual ~Win32Exception() throw();
45 virtual const char* what() const throw();
47 private:
48 void* m_MsgBuff;
51 //------------------------------------------
52 /**
54 class ZipContentMissException : public ZipException
56 public:
57 ZipContentMissException(int Error);
60 //------------------------------------------
61 /**
63 class AccessViolationException : public Win32Exception
65 public:
66 AccessViolationException(int Error);
69 //------------------------------------------
70 /**
72 class IOException : public Win32Exception
74 public:
75 IOException(int Error);
78 #endif