> For the complete documentation index, see [llms.txt](https://developer.collibra.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.collibra.com/tutorials/show-an-error-message-in-a-workflow.md).

# Show an error message in a workflow

Use workflow exceptions to show a customized error message in your Collibra Platform from a workflow.

<img src="/files/LZuacLBkEYs37k1jQFFS" alt="" width="375">

To notify users that something went wrong with a workflow activity, incorporate the following code into your Groovy script task:

```groovy
// #importFile NONE
import com.collibra.dgc.workflow.api.exception.WorkflowException

WorkflowException collibraError = new WorkflowException("Exception description.")
collibraError.setTitleMessage("Exception title")
throw collibraError
```

You can download an [example workflow](https://cdn.collibra.com/developer/ExceptionExample.zip) to see how an exception works.
