Soprano  2.9.2
Classes | Enumerations | Functions
Soprano::Error Namespace Reference

Classes

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

Enumerations

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

Functions

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

Enumeration Type Documentation

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(), Error::convertErrorCode
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
ErrorTimeout 

The command timed out.

Since
2.7.4
ErrorUnknown 

An unknown error occured.

Definition at line 40 of file error.h.

Function Documentation

SOPRANO_EXPORT QString Soprano::Error::errorMessage ( ErrorCode  )

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

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.