Hi guys!
Our website is configured so that when an error occurs an email containing the exception info is sent to us and the user sees a customized error webpage template. This is great and all but we've stumbled onto one particular case where we want the email but we don't want the application to stop and show the custom error page, we just want the email with the info be sent while the user can still browse around.
With that being said:
I'd like the application to try to load the staff member (line2) and if there is no staff member present (therefore no ID) then I want to put in line 5 the code that will give me the behavior I explained before?
Any ideas?
Thanks!
Our website is configured so that when an error occurs an email containing the exception info is sent to us and the user sees a customized error webpage template. This is great and all but we've stumbled onto one particular case where we want the email but we don't want the application to stop and show the custom error page, we just want the email with the info be sent while the user can still browse around.
With that being said:
Code:
<cftry>
<cfset Variables.temp = Variables.oStaffMember.load(Variables.nAdTeacherID)>
<cfcatch>
<cfcatch type="API.AVS.Validation">
>>What can I put here?<<
</cfcatch>
</cftry>
Any ideas?
Thanks!
Comment