Differences From Artifact [cae65c6e83]:
- File
src/exceptions/OFInvalidJSONException.m
— part of check-in
[72c71c4eb2]
at
2012-06-10 16:07:33
on branch trunk
— JSON: Make it possible to get the invalid line.
This introduces OFInvalidJSONException, which has a property line to get
the line in which the parsing error occurred. (user: js, size: 1405) [annotate] [blame] [check-ins using]
To Artifact [ca1d0c629a]:
- File
src/exceptions/OFInvalidJSONException.m
— part of check-in
[0db281bf03]
at
2012-06-11 11:08:47
on branch trunk
— Improve -[OFNumber description].
The %f conversion specifier does not include a decimal point if none is
required. In such cases, append ".0" to indicate that the number is of a
floating point type. (user: js, size: 1405) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | @implementation OFInvalidJSONException + exceptionWithClass: (Class)class_ line: (size_t)line { return [[[self alloc] initWithClass: class_ line: line] autorelease]; } - initWithClass: (Class)class_ line: (size_t)line_ { self = [super initWithClass: class_]; line = line_; return self; } | > > > > > > > > < < < < < < < < | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | @implementation OFInvalidJSONException + exceptionWithClass: (Class)class_ line: (size_t)line { return [[[self alloc] initWithClass: class_ line: line] autorelease]; } - init { Class c = isa; [self release]; @throw [OFNotImplementedException exceptionWithClass: c selector: _cmd]; } - initWithClass: (Class)class_ line: (size_t)line_ { self = [super initWithClass: class_]; line = line_; return self; } - (OFString*)description { if (description != nil) return description; description = [[OFString alloc] initWithFormat: @"The JSON representation class %@ tried to parse is invalid in " |
︙ | ︙ |