trikRuntime
trikKernel::FailedToParseXmlException Class Reference

Exception that is thrown when XML file is corrupt and "setContent" method of QDomDocument has failed. More...

#include <failedToParseXmlException.h>

Inheritance diagram for trikKernel::FailedToParseXmlException:
Collaboration diagram for trikKernel::FailedToParseXmlException:

Public Member Functions

 FailedToParseXmlException (const QFile &file, const QString &errorMessage, int errorLine, int errorColumn)
 Constructor. More...
 
const QFile & file () const
 Returns XML file that is failed to parse. More...
 
QString errorMessage () const
 Returns error message. More...
 
int errorLine () const
 Returns line in XML document where error occured. More...
 
int errorColumn () const
 Returns column in XML document where error occured. More...
 
- Public Member Functions inherited from trikKernel::TrikRuntimeException
 TrikRuntimeException ()=default
 
 ~TrikRuntimeException ()=default
 
 TrikRuntimeException (TrikRuntimeException &&e)=default
 Default. More...
 
 TrikRuntimeException (const TrikRuntimeException &e)=delete
 Deleted. More...
 

Detailed Description

Exception that is thrown when XML file is corrupt and "setContent" method of QDomDocument has failed.

Constructor & Destructor Documentation

trikKernel::FailedToParseXmlException::FailedToParseXmlException ( const QFile &  file,
const QString &  errorMessage,
int  errorLine,
int  errorColumn 
)
inline

Constructor.

Parameters
file- XML file that is failed to parse.
errorMessage- error message from QDomDocument::setContent.
errorLine- line in XML document where error occured.
errorColumn- column in XML document where error occured.

Member Function Documentation

int trikKernel::FailedToParseXmlException::errorColumn ( ) const
inline

Returns column in XML document where error occured.

int trikKernel::FailedToParseXmlException::errorLine ( ) const
inline

Returns line in XML document where error occured.

QString trikKernel::FailedToParseXmlException::errorMessage ( ) const
inline

Returns error message.

const QFile& trikKernel::FailedToParseXmlException::file ( ) const
inline

Returns XML file that is failed to parse.


The documentation for this class was generated from the following file: