Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-15 10:24:17

0001 // Copyright (C) 2024 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #ifndef QJSONPARSEERROR_H
0005 #define QJSONPARSEERROR_H
0006 
0007 #include <QtCore/qtconfigmacros.h>
0008 #include <QtCore/qtcoreexports.h>
0009 
0010 QT_BEGIN_NAMESPACE
0011 
0012 class QString;
0013 
0014 struct Q_CORE_EXPORT QJsonParseError
0015 {
0016     enum ParseError {
0017         NoError = 0,
0018         UnterminatedObject,
0019         MissingNameSeparator,
0020         UnterminatedArray,
0021         MissingValueSeparator,
0022         IllegalValue,
0023         TerminationByNumber,
0024         IllegalNumber,
0025         IllegalEscapeSequence,
0026         IllegalUTF8String,
0027         UnterminatedString,
0028         MissingObject,
0029         DeepNesting,
0030         DocumentTooLarge,
0031         GarbageAtEnd
0032     };
0033 
0034     QString errorString() const;
0035 
0036     int offset = -1;
0037     ParseError error = NoError;
0038 };
0039 
0040 QT_END_NAMESPACE
0041 
0042 #endif // QJSONPARSEERROR_H