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

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

You are right, it is misleading.



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

Fixed. Renamed and made descendent of EParserError (from Classes unit), so
you have to test for 1 exception only.

Michael.
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to