Qx v0.5.8
Qt Extensions Library
|
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 () |
Qx::XmlStreamReaderError::XmlStreamReaderError | ( | ) |
Constructs an invalid XML stream reader error that is equivalent to QXmlStreamReader::Error::NoError.
Qx::XmlStreamReaderError::XmlStreamReaderError | ( | QXmlStreamReader::Error | standardError | ) |
Constructs a XML stream reader error from standardError.
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.
Qx::XmlStreamReaderError::XmlStreamReaderError | ( | const QXmlStreamReader & | streamReader | ) |
Constructs a custom XML stream reader error from the current error state of stream streamReader.
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.
QString Qx::XmlStreamReaderError::text | ( | ) |
Returns the textual representation of the error.
QXmlStreamReader::Error Qx::XmlStreamReaderError::type | ( | ) |
Returns the error's underlying type.