• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

KCalCore Library

  • KCalCore
  • Exception
Public Types | Public Member Functions | Protected Attributes | List of all members
KCalCore::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
 

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

enum KCalCore::Exception::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 58 of file exceptions.h.

Constructor & Destructor Documentation

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 41 of file exceptions.cpp.

Exception::~Exception ( )
virtual

Destructor.

Definition at line 46 of file exceptions.cpp.

Member Function Documentation

QStringList Exception::arguments ( ) const
virtual

Returns the arguments.

Returns
A QStringList with the argument list for this exception.

Definition at line 55 of file exceptions.cpp.

Exception::ErrorCode Exception::code ( ) const
virtual

Returns the error code.

Returns
The ErrorCode for this exception.

Definition at line 50 of file exceptions.cpp.

Member Data Documentation

QStringList KCalCore::Exception::mArguments
protected

Arguments to pass to i18n().

Definition at line 116 of file exceptions.h.

ErrorCode KCalCore::Exception::mCode
protected

The current exception code.

Definition at line 113 of file exceptions.h.


The documentation for this class was generated from the following files:
  • exceptions.h
  • exceptions.cpp
This file is part of the KDE documentation.
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.

KCalCore Library

Skip menu "KCalCore Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal