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, ErrorUnknown = 0x1000 } |
Functions | |
SOPRANO_EXPORT QString | errorMessage (ErrorCode) |
SOPRANO_EXPORT ErrorCode | convertErrorCode (int code) |
Soprano defines a number of error codes that are used to provide a quick success status check in methods such as Model::addStatement().
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 |
|
ErrorNotSupported | Error indicating that a certain functionality is not supported. |
ErrorParsingFailed | Parsing a query or an RDF serialization failed. |
ErrorPermissionDenied |
Permission is denied.
|
ErrorUnknown | An unknown error occured. |
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.
code
converted to ErrorCode. If it is an unknown value, ErrorUnknown will be returned.