Represents an error in Soprano.
More...
#include <Soprano/Error/Error>
Represents an error in Soprano.
- Author
- Sebastian Trueg trueg.nosp@m.@kde.nosp@m..org
- See also
- Error handling in Soprano
Definition at line 77 of file error.h.
Soprano::Error::Error::Error |
( |
| ) |
|
Create an Error object, representing success, i.e. no error.
Create an Error object.
- Parameters
-
message | A human-readable error message. |
code | An optional machine-readable error code. Can be one of Soprano::ErrorCode or a user defined value which has to be bigger than ErrorUnknown. The redland backend for example uses error codes ErrorUnknown + redlandCode. |
Soprano::Error::Error::Error |
( |
const Error & |
| ) |
|
virtual Soprano::Error::Error::~Error |
( |
| ) |
|
|
virtual |
Error& Soprano::Error::Error::operator= |
( |
const Error & |
| ) |
|
Soprano::Error::Error::operator bool |
( |
| ) |
const |
|
inline |
An Error evalutes to a boolean, indicating if an Error is "set".
- Returns
false
if code() == ErrorNone, true
otherwise.
Thus, an Error object can easily be checked as follows:
Definition at line 121 of file error.h.
QString Soprano::Error::Error::message |
( |
| ) |
const |
A string explaining the error in detail. This string is not necessarily translated (this depends on the plugin implementation).
- Returns
- An error message describing the error or an empty string for no-error (i.e. success) instances.
int Soprano::Error::Error::code |
( |
| ) |
const |
bool Soprano::Error::Error::isParserError |
( |
| ) |
const |
- Returns
true
if this Error instance represents a parser error. In that case the error can be converted to a ParserError.
ParserError Soprano::Error::Error::toParserError |
( |
| ) |
const |
The documentation for this class was generated from the following file:
- /root/soprano/soprano-2.9.4+dfsg1/soprano/error.h