• Skip to content
  • Skip to link menu
KDE 4.8 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

KCalCore Library

  • KCalCore
  • Exception
Public Types | Public Member Functions | Protected Attributes
KCalCore::Exception Class Reference

#include <exceptions.h>

List of all members.

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.

Definition at line 55 of file exceptions.cpp.

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

Returns the error code.

Definition at line 50 of file exceptions.cpp.


Member Data Documentation

QStringList KCalCore::Exception::mArguments [protected]

Arguments to pass to i18n().

Definition at line 112 of file exceptions.h.

ErrorCode KCalCore::Exception::mCode [protected]

The current exception code.

Definition at line 109 of file exceptions.h.


The documentation for this class was generated from the following files:
  • exceptions.h
  • exceptions.cpp

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal