On 29/5/2011 18:57, Michael Van Canneyt wrote:


On Sun, 29 May 2011, Luiz Americo Pereira Camara wrote:

I found that to handle error while parsing json through TJSONParser is necessary to consider two types of exceptions:

EJSONScanner from jsonparser
EScannerError from jsonscanner

Well, there are 2 different kinds of errors: scanner errors, and parser errors.
They should have 2 different classes.

OK

EJSONScanner seems misleading since hints to a scanner error


Should a bug report be made?

You can submit a request so they are merged (or one made a descendent of the other).

Done:

http://bugs.freepascal.org/view.php?id=19444

Luiz
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to