KCalendarCore::Exception

Search for usage in LXR

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.

Enumerator
LoadError 

Load error.

SaveError 

Save error.

ParseErrorIcal 

Parse error in libical.

ParseErrorKcal 

Parse error in libkcal.

NoCalendar 

No calendar component found.

CalVersion1 

vCalendar v1.0 detected

CalVersion2 

iCalendar v2.0 detected

CalVersionUnknown 

Unknown calendar format detected.

Restriction 

Restriction violation.

UserCancel 

User canceled the operation.

NoWritableFound 

No writable resource is available.

Definition at line 47 of file exceptions.h.

Constructor & Destructor Documentation

◆ Exception()

Exception::Exception ( const ErrorCode code,
const QStringList & arguments = QStringList() )
explicit

Construct an exception.

Parameters
codeis the error code.
argumentsis 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()

Exception::~Exception ( )
virtual

Destructor.

Definition at line 51 of file exceptions.cpp.

Member Function Documentation

◆ arguments()

QStringList Exception::arguments ( ) const
virtual

Returns the arguments.

Returns
A QStringList with the argument list for this exception.

Definition at line 60 of file exceptions.cpp.

◆ code()

Exception::ErrorCode Exception::code ( ) const
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

KDE's Doxygen guidelines are available online.