How to handle errors if error component doesn't exist yet
Traditionally, when I encapsulate code in a <CFTRY> block, I have it use the 'APPLICATION.coms.fw.error' component to handle processing of that error.
This is all well and fine, but during the first call to the application, where everything is starting up, lots of processing is done reading configuration files to get pathing, etc. And that code has <CFTRY> blocks, but the thing is, they wouldn't be able to all the error component (because it hasn't yet been instantiated).
So should I just do something like:
<cfif isDefined( 'APPLICATION.coms.fw.error' )>
<!--- Handle Error Via Component. --->
<cfelse>
<!--- Output message to screen, use CFLOG to log error and the CFABORT to halt further processing. --->
</cfif>
