QCborParserError Struct

QCborParserErrorはQCborValue 、解析エラーを報告するために使用されます。詳細...

ヘッダー #include <QCborParserError>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core

注意:この構造体の関数はすべてリエントラントです。

パブリック関数

QString errorString() const

パブリック変数

QCborError error
qint64 offset

詳細説明

このクラスはQCborValue::fromCbor(const QByteArray &ba, QCborParserError *error)によって使用され、パーサーエラーとエラーが検出されたバイトオフセットを報告します。

QCborValue およびQCborErrorも参照してください

メンバ関数ドキュメント

QString QCborParserError::errorString() const

エラーコードを文字列で返します。この文字列は翻訳されません。

QCborError::toString() およびQCborValue::fromCbor()も参照

メンバ変数のドキュメント

QCborError QCborParserError::error

このフィールドには、どのようなデコード問題が見つかったかを示すエラーコードが含まれる。

QCborValue::fromCbor()も参照のこと

qint64 QCborParserError::offset

このフィールドには、エラーが検出されたデータの先頭からのオフセットが含まれる。このオフセットは、たとえエラーそのものが別の場所にあったとしても(たとえばUTF-8デコードの問題など)、エラーを含む項目の先頭を指すべきである。

QCborValue::fromCbor()も参照

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.