KCal::ErrorFormat Class Reference

Calendar format related error class. More...

#include <exceptions.h>

Inheritance diagram for KCal::ErrorFormat:

List of all members.

Public Types

enum  ErrorCodeFormat {
  LoadError, SaveError, ParseErrorIcal, ParseErrorKcal,
  NoCalendar, CalVersion1, CalVersion2, CalVersionUnknown,
  Restriction, UserCancel
}

Public Member Functions

 ErrorFormat (ErrorCodeFormat code, const QString &message=QString())
 ~ErrorFormat ()
ErrorCodeFormat errorCode ()
QString message ()

Detailed Description

Calendar format related error class.

Definition at line 82 of file exceptions.h.


Member Enumeration Documentation

The different types of Calendar format errors.

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.

Definition at line 88 of file exceptions.h.


Constructor & Destructor Documentation

ErrorFormat::ErrorFormat ( ErrorCodeFormat  code,
const QString &  message = QString() 
) [explicit]

Creates a format error exception.

Private class that helps to provide binary compatibility between releases.

Parameters:
code is the exception ErrorCodeFormat.
message is the exception message string.

For internal use only.

Definition at line 73 of file exceptions.cpp.

ErrorFormat::~ErrorFormat (  ) 

Destructor.

Definition at line 79 of file exceptions.cpp.


Member Function Documentation

ErrorFormat::ErrorCodeFormat ErrorFormat::errorCode (  ) 

Returns the format error code.

Definition at line 128 of file exceptions.cpp.

QString ErrorFormat::message (  )  [virtual]

Returns the format error message.

Reimplemented from KCal::Exception.

Definition at line 84 of file exceptions.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys