summaryrefslogtreecommitdiffstats
path: root/src/corelib/json/qjsondocument.h
diff options
context:
space:
mode:
authorAlexei Rousskikh <ext-alexei.rousskikh@nokia.com>2012-03-13 10:10:12 -0400
committerQt by Nokia <qt-info@nokia.com>2012-03-27 12:06:54 +0200
commit7ecbc49c55c531875d98103609e025dd1ad5c44f (patch)
tree1761241387ac0177a9e5070e6ebe2624edb6c7ce /src/corelib/json/qjsondocument.h
parent4535913c4fb908293f8f1667eff480efc3fadd73 (diff)
QJsonParseError improvements
- added human-readable error message - improved enum value names Change-Id: I86d4bb419f9581f85d61b6e090048f1943017f9e Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/corelib/json/qjsondocument.h')
-rw-r--r--src/corelib/json/qjsondocument.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/corelib/json/qjsondocument.h b/src/corelib/json/qjsondocument.h
index e39dc6a27c..c67899192c 100644
--- a/src/corelib/json/qjsondocument.h
+++ b/src/corelib/json/qjsondocument.h
@@ -63,14 +63,16 @@ struct Q_CORE_EXPORT QJsonParseError
UnterminatedArray,
MissingValueSeparator,
IllegalValue,
- EndOfNumber,
+ TerminationByNumber,
IllegalNumber,
- StringEscapeSequence,
- StringUTF8Scan,
- EndOfString,
+ IllegalEscapeSequence,
+ IllegalUTF8String,
+ UnterminatedString,
MissingObject
};
+ QString errorString() const;
+
int offset;
ParseError error;
};