![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\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 36 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 41 of file qcborvalue.h.
QCborError QCborParserError::error = { QCborError::NoError } |
Definition at line 39 of file qcborvalue.h.
qint64 QCborParserError::offset = 0 |
Definition at line 38 of file qcborvalue.h.
Referenced by testing.tools.fixup_pdf_template.TemplateProcessor::insert_xref_entry(), and testing.tools.fixup_pdf_template.TemplateProcessor::process_line().