# TryCatchTask.CatchElement

### Parameters

Attribute | Type | Description | Required
--- | --- | --- | ---
property | string | Defines the name of the property to save the message describing the failure that has been caught. | False
failonerror | bool | Determines if task failure stops the build, or is just reported. The default is true. | False
if | bool | If true then the task will be executed; otherwise, skipped. The default is true. | False
unless | bool | Opposite of `if`. If false then the task will be executed; otherwise, skipped. The default is false. | False
verbose | bool | Determines whether the task should report detailed build log messages. The default is false. | False

### Requirements

Assembly: NAnt.Contrib.Tasks (0.85.2479.0)