00001 #ifndef SCTARCHIVING_ZLIBEXCEPTION_H
00002 #define SCTARCHIVING_ZLIBEXCEPTION_H
00003 #include "Sct/Exception.h"
00004 using namespace std;
00005
00006 namespace SctArchiving{
00012 class ZlibException : public Sct::Exception{
00013 public:
00017 ZlibException(const string& msg, const string& file, int line) throw() {
00018 initialize("ZLIB_ERROR", "SctArchiving::ZlibException", msg, 0, file, line);
00019 }
00023 ZlibException(const string& msg, Throwable* cause,
00024 const string& file, int line) throw() {
00025 initialize("ZLIB_ERROR", "Sct::ZlibException", msg, cause, file, line);
00026 }
00027 protected:
00028 ZlibException() throw() {}
00029 };
00030 }
00031
00032 #endif // SCTARCHIVING_ZLIBEXCEPTION_H