exceptions.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KCAL_EXCEPTIONS_H
00022 #define KCAL_EXCEPTIONS_H
00023
00024
00025
00026
00027
00028
00029
00030 #include <qstring.h>
00031
00032 namespace KCal {
00033
00038 class Exception {
00039 public:
00041 Exception(const QString &message=QString::null);
00042 virtual ~Exception();
00043
00045 virtual QString message();
00046
00047 protected:
00048 QString mMessage;
00049 };
00050
00052 class ErrorFormat : public Exception {
00053 public:
00054 enum ErrorCodeFormat { LoadError, SaveError,
00055 ParseErrorIcal, ParseErrorKcal,
00056 NoCalendar,
00057 CalVersion1,CalVersion2,
00058 CalVersionUnknown,
00059 Restriction };
00060
00062 ErrorFormat(ErrorCodeFormat code,const QString &message = QString::null);
00063
00065 QString message();
00067 ErrorCodeFormat errorCode();
00068
00069 private:
00070 ErrorCodeFormat mCode;
00071 };
00072
00073 }
00074
00075 #endif
This file is part of the documentation for kdelibs Version 3.1.5.