Soprano
2.7.6
|
Represents a parser error in Soprano. More...
#include <Soprano/Error/ParserError>
Public Member Functions | |
ParserError () | |
ParserError (const Locator &, const QString &message=QString(), int code=ErrorParsingFailed) | |
ParserError (const Error &) | |
~ParserError () | |
ParserError & | operator= (const Error &) |
Locator | locator () const |
![]() | |
Error () | |
Error (const QString &message, int code=ErrorUnknown) | |
Error (const Error &) | |
virtual | ~Error () |
operator bool () const | |
QString | message () const |
int | code () const |
bool | isParserError () const |
ParserError | toParserError () const |
Represents a parser error in Soprano.
ParserError represents an error during parsing of either a query string (Soprano::Query::Parser::parseQuery()) or an RDF serialization (Soprano::Parser::parseStream()). Error and ParserError can be used together and copied without loosing information.
The following code is perfectly valid and works:
Soprano::Error::ParserError::ParserError | ( | ) |
Create an Error object, representing success, i.e. no error.
Soprano::Error::ParserError::ParserError | ( | const Locator & | , |
const QString & | message = QString() , |
||
int | code = ErrorParsingFailed |
||
) |
Soprano::Error::ParserError::ParserError | ( | const Error & | ) |
Soprano::Error::ParserError::~ParserError | ( | ) |
ParserError& Soprano::Error::ParserError::operator= | ( | const Error & | ) |
Reimplemented from Soprano::Error::Error.
Locator Soprano::Error::ParserError::locator | ( | ) | const |