KCalendarCore::Exception
KCalendarCore::Exception Class Reference
#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 |
Detailed Description
Exception base class, currently used as a fancy kind of error code and not as an C++ exception.
Definition at line 41 of file exceptions.h.
Member Enumeration Documentation
◆ ErrorCode
The different types of error codes.
Definition at line 47 of file exceptions.h.
Constructor & Destructor Documentation
◆ Exception()
|
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 44 of file exceptions.cpp.
◆ ~Exception()
|
virtual |
Destructor.
Definition at line 51 of file exceptions.cpp.
Member Function Documentation
◆ arguments()
|
virtual |
Returns the arguments.
- Returns
- A QStringList with the argument list for this exception.
Definition at line 60 of file exceptions.cpp.
◆ code()
|
virtual |
Returns the error code.
- Returns
- The ErrorCode for this exception.
Definition at line 55 of file exceptions.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:01:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:01:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.