Skip to content

Test Model

raised()

raised() — returns string

Available in: test Category: Testing Functions

Catches a raised error and returns the error type Great if you want to test that a certain exception will be raised.

NameTypeRequiredDefaultDescription
expressionstringyesString containing CFML expression to evaluate