![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtCore\reentrant More...
#include <qcborvalue.h>
Public Member Functions | |
QString | errorString () const |
\variable QCborParserError::offset | |
Public Attributes | |
qint64 | offset = 0 |
QCborError | error = { QCborError::NoError } |
\inmodule QtCore
\reentrant
The QCborParserError is used by QCborValue to report a parsing error.
This class is used by \l {QCborValue::fromCbor(const QByteArray &ba, QCborParserError *error)} to report a parser error and the byte offset where the error was detected.
Definition at line 39 of file qcborvalue.h.
|
inline |
\variable QCborParserError::offset
This field contains the offset from the beginning of the data where the error was detected. The offset should point to the beginning of the item that contained the error, even if the error itself was elsewhere (for example, for UTF-8 decoding issues).
\variable QCborParserError::error
This field contains the error code that indicates what decoding problem was found.
Returns a string representation of the error code. This string is not translated.
Definition at line 44 of file qcborvalue.h.
References error, and QCborError::toString().
Referenced by QQuickSplitView::restoreState().
QCborError QCborParserError::error = { QCborError::NoError } |
Definition at line 42 of file qcborvalue.h.
Referenced by errorString(), QPluginParsedMetaData::parse(), and QQuickSplitView::restoreState().
qint64 QCborParserError::offset = 0 |
Definition at line 41 of file qcborvalue.h.