---
schema_version: "1"
id: cfa764ed29dc1d4723d1fe9dc8266d83572ec5617b5fdd5587eb38ad3e009f5a
title: Fail Event Processor
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/munit/3.6/fail-event-processor.md
canonical_url: https://docs.mulesoft.com/munit/3.6/fail-event-processor
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 6d010ef48bbf6e95db06e268d5f2fa65a489b6225264a6533fd70f94e2f59f0c
description: MuleSoft Documentation Site
release: "3.6"
latest: false
---
---
product: MUnit
version: 3.6
---

# Fail Event Processor

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

![logo acb active](/mulesoft/current/en-us/_/img/icons/anypoint-code-builder.svg "Anypoint Code Builder")Anypoint Code
Builder

![logo studio active](/mulesoft/current/en-us/_/img/icons/studio.svg "Anypoint Studio")Anypoint Studio

The Fail Event Processor allows you to fail your test on purpose. This is useful to validate that a
test should fail if that point is reached.

```xml
<munit-tools:fail
  message="This should fail"/>
```

The message field is optional and defines the error message to print when the assertion fails. The
processor throws a `java.lang.AssertionError`.
