KCalCore Library
#include <exceptions.h>
Public Types | |
enum | ErrorCode { LoadError, SaveError, ParseErrorIcal, ParseErrorKcal, NoCalendar, CalVersion1, CalVersion2, CalVersionUnknown, Restriction, UserCancel, NoWritableFound, SaveErrorOpenFile, SaveErrorSaveFile, LibICalError, VersionPropertyMissing, ExpectedCalVersion2, ExpectedCalVersion2Unknown, ParseErrorNotIncidence, ParseErrorEmptyMessage, ParseErrorUnableToParse, ParseErrorMethodProperty } |
Public Member Functions | |
Exception (const ErrorCode code, const QStringList &arguments=QStringList()) | |
virtual | ~Exception () |
virtual QStringList | arguments () const |
virtual ErrorCode | code () const |
Protected Attributes | |
QStringList | mArguments |
ErrorCode | mCode |
Detailed Description
Exception base class, currently used as a fancy kind of error code and not as an C++ exception.
Definition at line 50 of file exceptions.h.
Member Enumeration Documentation
The different types of error codes.
Definition at line 58 of file exceptions.h.
Constructor & Destructor Documentation
|
explicit |
Construct an exception.
- Parameters
-
code is the error code. arguments is a list of arguments that can be passed to an i18n engine to help build a descriptive message for the user, a common argument is for example the filename where the error occurred.
Definition at line 41 of file exceptions.cpp.
|
virtual |
Destructor.
Definition at line 46 of file exceptions.cpp.
Member Function Documentation
|
virtual |
Returns the arguments.
- Returns
- A QStringList with the argument list for this exception.
Definition at line 55 of file exceptions.cpp.
|
virtual |
Returns the error code.
- Returns
- The ErrorCode for this exception.
Definition at line 50 of file exceptions.cpp.
Member Data Documentation
|
protected |
Arguments to pass to i18n().
Definition at line 116 of file exceptions.h.
|
protected |
The current exception code.
Definition at line 113 of file exceptions.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:36:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.