stevel

How to trap API-level errors

Discussion created by stevel on Nov 11, 2012
Latest reply on Nov 14, 2012 by stevel
I'm seeing an error message in FireBug:

Error: Internal kml parser error.http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2compact
Line 34


I'm not worried about fixing this error for the moment - I'd like to know how can I trap the error, so I can report it to the user?

The map has an onLayersAddResult event, which contains an Error handler. Is there a similar map-level error handling event which would trap the above KML parser error?

It seems like the map object needs an onError() event.

Thanks,
Steve

Outcomes