> For the complete documentation index, see [llms.txt](https://docs.airops.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airops.com/docs/de/aktionen/workflow-concepts/workflow-steps/flow/error-step.md).

# Fehler

Eigene Fehlermeldungen auslösen, die den Workflow beenden

## Was ist der Error Step?

Mit dem Error Step können Sie den Workflow beenden und den Benutzern eine benutzerdefinierte Fehlermeldung sowie einen Fehlercode anzeigen.

Der Fehler besteht aus zwei Teilen:

1. **Fehlercode:** Eine benutzerdefinierte Kennung für den Fehler, die zum Tracking und Debugging in der Workflow-API verwendet werden kann
2. **Fehlermeldung:** Eine benutzerdefinierte Nachricht, die in der AirOps-Benutzeroberfläche angezeigt wird und den Fehler mit Anweisungen zur Behebung beschreibt.

### Beispielanwendungsfall

Betrachten wir ein Szenario, in dem wir sicherstellen möchten, dass Benutzereingaben keine sensiblen Inhalte enthalten. Wir können den Error Step so konfigurieren, dass der folgende Fehler ausgelöst wird:

1. **Fehlercode:** `SENSITIVE_CONTENT_ERROR`
2. **Fehlermeldung:** `Ihre Eingabe enthält sensible Informationen. Bitte entfernen Sie alle vertraulichen Daten, bevor Sie fortfahren.`

#### Konfiguration des Error Step:

<figure><img src="https://1960680173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-3f9a9c305004299b4af02cd01cac665c6beb369e%2Ferror-step-01-configuration.png?alt=media" alt="Error step with the code SENSITIVE_CONTENT_ERROR and a message asking the user to remove confidential data"><figcaption><p>Konfiguration des Error Step.</p></figcaption></figure>

**Dem Benutzer angezeigter Error Step:**

<figure><img src="https://1960680173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-a8b1f668acb3fcf73beaed1d3680b7b859f0a7fe%2Ferror-step-02-message.png?alt=media" alt="Run Once page of the Sensitive Content Guard Workflow with an error toast showing the custom message"><figcaption><p>Die Nachricht, die Benutzer sehen, wenn der Error Step ausgeführt wird.</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.airops.com/docs/de/aktionen/workflow-concepts/workflow-steps/flow/error-step.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
