soprano
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
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.
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:
codeconverted 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.
KDE 4.4 API Reference