webCOMAND

#EXCEPTION

Throw an exception within the cTemplate processor, which will halt further processing.  When the cTemplate is processed as part of a publish, the publication procedure's publish will be halted, but the publish will still move on to the next publication procedure if applicable.  When the cTemplate is processed as part of a content validation (ie. from the Validate content type template), validation will fail.

Prototype

#EXCEPTION($message)

Parameters

  • message - The exception message to report.

Example

#IF($FatalError)
    #EXCEPTION("There was a critical error.")
#ENDIF

Related

#DEBUG, #ERROR, #NOTE, #WARNING