1234567891011121314151617181920212223242526272829303132333435module juptune.data.json.parser;
enum JsonParserError : int
{
///
none = 0,
/// Attempted to end an array or object when the depth buffer is either empty, or is for the opposite type of depth.
wrongDepth = 1,
/// Attempted to start reading an object or array, but the depth buffer has been completely used up.
tooDeep = 2,
/// Attempted to parse a negative number as an unsigned type.
numberIsNegative = 3,
/// Attempted to parse a number that cannot be represented with a specific native numeric type.
numberCannotBeRepresented = 4,
/// A string/name is unterminated.
unterminatedString = 5,
/// The final field in an array or object has a comma after it (believe it or not strict JSON parsing forbids this :/).
extraComma = 6,
/// Expected a colon between an object field name and its value.
missingColon = 7,
/// Expected a comma while reading next non-initial object name or array value.
missingComma = 8,
/// There was some sort of syntax error when parsing a numeric value.
invalidNumber = 9,
/// A keyword (unquoted text) wasn't recognised.
invalidKeyword = 10,
/// An invalid escape character was found within a string/name.
invalidEscapeCharacter = 11,
/// Could not determine what the next token should be, because the next character is not a known start-of-token character.
unexpectedCharacter = 12,
/// No more characters to consume.
eof = 13,
/// Attempted to call JsonParser.finish while still midway through parsing.
incomplete = 14
}
A Resulterror enum.