> 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/fr/actions/workflow-concepts/workflow-steps/flow/error-step.md).

# Erreur

Déclenchez des messages d'erreur personnalisés qui interrompent le workflow

## Qu'est-ce que l'étape d'erreur ?

L'étape d'erreur vous permet de terminer le workflow et d'afficher aux utilisateurs un message d'erreur et un code d'erreur personnalisés.

L'erreur est composée de deux parties :

1. **Code d'erreur :** Un identifiant personnalisé pour l'erreur, qui peut être utilisé pour le suivi et le débogage dans l'API du workflow
2. **Message d'erreur :** Un message personnalisé affiché dans l'interface AirOps, décrivant l'erreur avec des instructions sur la manière de la résoudre.

### Exemple d'utilisation

Imaginons un scénario dans lequel nous voulons nous assurer que les saisies de l'utilisateur ne contiennent aucun contenu sensible. Nous pouvons configurer l'étape d'erreur pour déclencher l'erreur suivante :

1. **Code d'erreur :** `SENSITIVE_CONTENT_ERROR`
2. **Message d'erreur :** `Votre saisie contient des informations sensibles. Veuillez supprimer toute donnée confidentielle avant de continuer.`

#### Configuration de l'étape d'erreur :

<div data-full-width="false"><figure><img src="https://344527547-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-bdb8cacb9f40a08ec0b7cf4601ae439d6bd8be63%2FScreenshot%202024-04-26%20at%2013.56.13.png?alt=media" alt="" width="563"><figcaption><p>Configuration de l'erreur</p></figcaption></figure></div>

**Étape d'erreur affichée à l'utilisateur :**

<figure><img src="https://344527547-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-39309ca4a0c2116f34bacd477f71323af0e25b6f%2FScreenshot%202024-04-26%20at%2013.57.41.png?alt=media" alt="" width="473"><figcaption><p>Message d'erreur</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/fr/actions/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.
