Whatever message this page gives is out now! Go check it out!

CFCATCH variables

Last update:
May 18, 2026
Within a cfcatch block, the active exception properties can be accessed as the following variables:
CFCATCH.Type
 CFCATCH.Message
 CFCATCH.Detail
 CFCATCH.ErrNumber
 CFCATCH.NativeErrorCode
 CFCATCH.SQLState
 CFCATCH.LockName
 CFCATCH.LockOperation
 CFCATCH.MissingFileName
CFCATCH.Cause
CFCATCH.RootCause
CFCATCH.Action
CFCATCH.File
 CFCATCH.TagContext
 CFCATCH.ErrorCode
 CFCATCH.ExtendedInfo
Within a cfcatch block, database exception properties can be accessed as the following variables:
CFCATCH.QueryError
 CFCATCH.SQL
 CFCATCH.Where
 CFCATCH.Datasource
Within a cfcatch block, undefined variable exception properties can be accessed as the following variable:
CFCATCH.Name
Within a cfcatch block, syntax and parsing exception properties can be accessed as the following variables:
CFCATCH.TokenText
 CFCATCH.Snippet
 CFCATCH.Column
 CFCATCH.KnownColumn
 CFCATCH.Line
 CFCATCH.KnownLine

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page