Re: [fpc-devel] fpjson/jsonparser: EJSONScanner vs EScannerError

2011-05-30 Thread michael . vancanneyt
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: EJSONScann

Re: [fpc-devel] fpjson/jsonparser: EJSONScanner vs EScannerError

2011-05-29 Thread Luiz Americo Pereira Camara
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, th

Re: [fpc-devel] fpjson/jsonparser: EJSONScanner vs EScannerError

2011-05-29 Thread Michael Van Canneyt
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 This has the drawback of need to duplicate code like:

[fpc-devel] fpjson/jsonparser: EJSONScanner vs EScannerError

2011-05-29 Thread Luiz Americo Pereira Camara
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 This has the drawback of need to duplicate code like: on E: EJSONScanner do begin ShowMessageFmt('Error