I'm seeing an error message in FireBug:
Error: Internal kml parser error.http://serverapi.arcgisonline.com/js.../?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 elegantly? Eg, if they're not using Firebug I'd still like them to know that there's a problem.
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 (and any other errors which might be generated by the API)?
It seems like the
map object needs a generic
onError() event, but I can't see anything suitable.