> 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="https://2912049260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8DYDBo6jzvQ73H6CZj6k%2Fuploads%2Fgit-blob-48d03f54c474683e8f449c8e795bd332b2d5007b%2Fdocs_howto_workflow-exception-example.png?alt=media" 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.
