AnsweredAssumed Answered

Error Handling of bad Urls

Question asked by donnaghmcmahon181 on Aug 31, 2016
Latest reply on Aug 31, 2016 by rscheitlin

Hi Guys,

I am trying to detect errors when adding layers to a map. I am sending a url to a webservice to get layer info, I'm intentionally firing out an incorrect url so that the response returns a 500 error. is there any way i can catch the response from the webservice and trigger an error when this response is recieved?

 

 firstLayer = new esri.layers.ArcGISDynamicMapServiceLayer(lincorrectUrl);

 

Thanks,

Don

Outcomes