QCborParserError Struct
The QCborParserError class is used by QCborValue to report a parsing error. More…
| Header | #include <QCborParserError> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Core) |
| Module | Nt Core C++ Classes |
| Since | 5.12 |
List of all members, including inherited members
Public Functions
| QString | errorString() const |
Public Variables
| qint64 | offset |
| QCborError | error |
Detailed Description
QCborValue::fromCbor() fills it in when the data is not valid CBOR: the error, and the offset in bytes where it was found.
See also QCborValue::fromCbor().
Differences from Qt
None.
Member Function Documentation
QString QCborParserError::errorString() const
Returns a text for the error.
See also QCborError::toString().
Member Variable Documentation
QCborError QCborParserError::error
The error that was found, or QCborError::NoError.
qint64 QCborParserError::offset
The offset in bytes at which the error was found.