libkcal

KCal::ErrorFormat Class Reference

#include <exceptions.h>

Inheritance diagram for KCal::ErrorFormat:
KCal::Exception

Public Types

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

Public Member Functions

 ErrorFormat (ErrorCodeFormat code, const TQString &message=TQString())
 
TQString message ()
 
ErrorCodeFormat errorCode ()
 
- Public Member Functions inherited from KCal::Exception
 Exception (const TQString &message=TQString())
 

Additional Inherited Members

- Protected Attributes inherited from KCal::Exception
TQString mMessage
 

Detailed Description

Calendar format related error class.

Definition at line 64 of file exceptions.h.

Member Enumeration Documentation

◆ ErrorCodeFormat

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.

NoWritableFound 

No writable resource is available.

UserCancel 

User canceled the operation.

Definition at line 70 of file exceptions.h.

Constructor & Destructor Documentation

◆ ErrorFormat()

ErrorFormat::ErrorFormat ( ErrorCodeFormat  code,
const TQString &  message = TQString() 
)

Create format error exception.

Definition at line 48 of file exceptions.cpp.

Member Function Documentation

◆ errorCode()

ErrorFormat::ErrorCodeFormat ErrorFormat::errorCode ( )

Return format error code.

Definition at line 101 of file exceptions.cpp.

◆ message()

TQString ErrorFormat::message ( )
virtual

Return format error message.

Reimplemented from KCal::Exception.

Definition at line 54 of file exceptions.cpp.


The documentation for this class was generated from the following files: