scripter73
Programmer
Hi,
Suppose I have a normal link, and if that link doesn't exist, I want to show user an "exception" message. Is this possible?
<CFTRY>
<CFINCLUDE TEMPLATE="error_handling_template.cfm">
<a href="non_existent_link.cfm">Link Doesn't Exist</a>
<CFCATCH TYPE="Any">
Do something here.
</CFCATCH>
</CFTRY>
I'm sort of new to the exception handling and have not done it in real detail. I'm trying to enter the major leagues.
Any help is appreciated.
Thanks,
scripter73
Suppose I have a normal link, and if that link doesn't exist, I want to show user an "exception" message. Is this possible?
<CFTRY>
<CFINCLUDE TEMPLATE="error_handling_template.cfm">
<a href="non_existent_link.cfm">Link Doesn't Exist</a>
<CFCATCH TYPE="Any">
Do something here.
</CFCATCH>
</CFTRY>
I'm sort of new to the exception handling and have not done it in real detail. I'm trying to enter the major leagues.
Any help is appreciated.
Thanks,
scripter73