O'Reilly logo

Microsoft Dynamics CRM 2011 Scripting Cookbook by Nicolae Tarla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Handling unexpected processing

While this recipe will most likely not introduce you to anything specific to Dynamics CRM, the error-handling procedures described here are specific to the JavaScript language and can easily be applied in the context of Dynamics CRM. Full support of the JavaScript try/catch exception-handler block was introduced around the release of Internet Explorer Version 6.

JavaScript defines six standard and one custom error type to allow you to throw your own customized exceptions. They are given in the following table:

Error

Details

URIError

This error occurs while encoding or decoding an URI. It is not a common occurrence in Dynamics CRM.

RangeError

This error occurs when the number is out of range. It has a quite ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required