Qx v0.5.8
Qt Extensions Library
Loading...
Searching...
No Matches
Qx::XmlStreamReaderError Class Reference

The XmlStreamReaderError class provides a full error object for QXmlStreamReader, similar to other Qt classes, that can be more convenient for processing errors than just QXmlStreamReader::Error. More...

#include <qx/xml/qx-xmlstreamreadererror.h>

Public Member Functions

 XmlStreamReaderError ()
 
 XmlStreamReaderError (const QXmlStreamReader &streamReader)
 
 XmlStreamReaderError (QString customError)
 
 XmlStreamReaderError (QXmlStreamReader::Error standardError)
 
bool isValid ()
 
QString text ()
 
QXmlStreamReader::Error type ()
 

Detailed Description

Constructor & Destructor Documentation

◆ XmlStreamReaderError() [1/4]

Qx::XmlStreamReaderError::XmlStreamReaderError ( )

Constructs an invalid XML stream reader error that is equivalent to QXmlStreamReader::Error::NoError.

◆ XmlStreamReaderError() [2/4]

Qx::XmlStreamReaderError::XmlStreamReaderError ( QXmlStreamReader::Error standardError)

Constructs a XML stream reader error from standardError.

◆ XmlStreamReaderError() [3/4]

Qx::XmlStreamReaderError::XmlStreamReaderError ( QString customError)

Constructs a custom XML stream reader error from the string customError.

This sets the error type to QXmlStreamReader::Error::CustomError.

◆ XmlStreamReaderError() [4/4]

Qx::XmlStreamReaderError::XmlStreamReaderError ( const QXmlStreamReader & streamReader)

Constructs a custom XML stream reader error from the current error state of stream streamReader.

Member Function Documentation

◆ isValid()

bool Qx::XmlStreamReaderError::isValid ( )

Returns true if the error is valid; otherwise returns false.

A xml stream reader error is valid if its underlying type isn't QXmlStreamReader::Error::NoError.

◆ text()

QString Qx::XmlStreamReaderError::text ( )

Returns the textual representation of the error.

◆ type()

QXmlStreamReader::Error Qx::XmlStreamReaderError::type ( )

Returns the error's underlying type.


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