ColdFusion · Exception
What does Custom Exception Type (cfthrow) mean in ColdFusion?
Matches an application-defined exception raised with <cfthrow type="..."> rather than a built-in ColdFusion error category. Developers commonly name these with dot-delimited, reverse-domain-style strings (e.g. MyApp.BusinessRule.InvalidAccount) so cfcatch can match hierarchically, from the most specific string down to the least specific.
Matches an application-defined exception raised with <cfthrow type="..."> rather than a built-in ColdFusion error category. Developers commonly name these with dot-delimited, reverse-domain-style strings (e.g. MyApp.BusinessRule.InvalidAccount) so cfcatch can match hierarchically, from the most specific string down to the least specific.
Adopt a consistent dot-delimited naming scheme for custom types, then order cfcatch blocks from most-specific to least-specific type so a precise handler runs before a generic fallback catches it.