webCOMAND

#EXCEPTION

Syntax

#EXCEPTION(Message)

Parameters

  • Message - The exception message to report.

Description

Throw an exception within the sScript processor, which will halt further processing.  When the cScript 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 cScript is processed as part of a content validation (ie. from the Validate content type template), validation will fail.

Related

#DEBUG, #ERROR, #NOTE, #WARNING

Example

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