Web services might throw errors, including SOAP faults, during processing that you can catch in your application. If uncaught, these errors propagate to the browser.
To catch errors, you specify an error type of application to the ColdFusion cfcatch tag, as the following example shows:
<cftry> Put your application code here ... <cfcatch type="application"> <!--- Add exception processing code here ... ---> </cfcatch> ... <cfcatch type="Any"> <!--- Add exception processing code appropriate for all other exceptions here ... ---> </cfcatch> </cftry>
For more information on error handling, see Handling Errors.