• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE Support
  • Sitemap
  • Contact Us
 

soprano

Soprano::Error

Soprano::Error Namespace Reference

Classes

class  Error
 Represents an error in Soprano. More...
class  ErrorCache
 Core class of Soprano's exception system. More...
class  Locator
 Details of a parser Error. More...
class  ParserError
 Represents a parser error in Soprano. More...

Enumerations

enum  ErrorCode {
  ErrorNone = 0x0, ErrorInvalidArgument = 0x1, ErrorInvalidStatement = ErrorInvalidArgument, ErrorNotSupported = 0x2,
  ErrorParsingFailed = 0x3, ErrorPermissionDenied = 0x4, ErrorUnknown = 0x1000
}

Functions

SOPRANO_EXPORT ErrorCode convertErrorCode (int code)
SOPRANO_EXPORT QString errorMessage (ErrorCode)

Enumeration Type Documentation

enum Soprano::Error::ErrorCode

Soprano defines a number of error codes that are used to provide a quick success status check in methods such as Model::addStatement().

See also:
Error::Error::code()
Enumerator:
ErrorNone 

No error occured, i.e.

success.

ErrorInvalidArgument 

Error indicating that a method argument was invalid.

For example an invalid Statement in Model::addStatement().

ErrorInvalidStatement 
Deprecated:
: use ErrorInvalidArgument
ErrorNotSupported 

Error indicating that a certain functionality is not supported.

ErrorParsingFailed 

Parsing a query or an RDF serialization failed.

ErrorPermissionDenied 

Permission is denied.

Since:
2.1
ErrorUnknown 

An unknown error occured.

Definition at line 40 of file error.h.


Function Documentation

SOPRANO_EXPORT ErrorCode Soprano::Error::convertErrorCode ( int  code  ) 

Converts a plain error code (as for example used in Error::code()) into an ErrorCode value.

Returns:
code converted to ErrorCode. If it is an unknown value, ErrorUnknown will be returned.
SOPRANO_EXPORT QString Soprano::Error::errorMessage ( ErrorCode   ) 

Translate an error code into a human-readable error message.

soprano

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

KDE Support

Skip menu "KDE Support"
  • akonadi
  • Decibel
  • grantlee
  • kdewin
  • phonon
  •     Backend
  • polkit-qt
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for KDE Support by doxygen 1.5.9-20090814
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