• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE Support
  • Sitemap
  • Contact Us
 

soprano

Soprano::Error::ParserError

Soprano::Error::ParserError Class Reference

Represents a parser error in Soprano. More...

#include <Soprano/Error/ParserError>

Inheritance diagram for Soprano::Error::ParserError:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ParserError (const Error &)
 ParserError (const Locator &, const QString &message=QString(), int code=ErrorParsingFailed)
 ParserError ()
 ~ParserError ()
Locator locator () const
ParserError & operator= (const Error &)

Detailed Description

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:

 ParserError pe( 3, 4 );
 Error e = pe;
 ParserError otherPe = e;
 qDebug() << "Parsing failed at line " << otherPe.line() << " and column " << otherPe.column();
Author:
Sebastian Trueg <trueg@kde.org>
See also:
Error handling in Soprano

Definition at line 199 of file error.h.


Constructor & Destructor Documentation

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 (  ) 

Member Function Documentation

Locator Soprano::Error::ParserError::locator (  )  const
ParserError& Soprano::Error::ParserError::operator= ( const Error &   ) 

The documentation for this class was generated from the following file:
  • error.h

soprano

Skip menu "soprano"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE Support

Skip menu "KDE Support"
  • akonadi
  • Decibel
  • grantlee
  • kdewin
  • phonon
  •     Backend
  • polkit-qt
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for KDE Support by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal