> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Mark Error • Rust AI Agent SDK

> mark_error: Mark this profile as having an error.

# mark\_error

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**AuthProfile**](../classes/AuthProfile) class in the [**failover**](../modules/failover) module.

Mark this profile as having an error.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def mark_error(&mut self, error: impl Into<String>, cooldown: Duration) -> ()
```

## Parameters

<ParamField query="error" type="impl Into<String>" required={true}>
  No description available.
</ParamField>

<ParamField query="cooldown" type="Duration" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="()">
  The result of the operation.
</ResponseField>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Error Handling" icon="triangle-exclamation" href="/docs/rust/error-handling" />

  <Card title="Rust Retry" icon="rotate-right" href="/docs/rust/retry" />

  <Card title="Rust Failover" icon="shield" href="/docs/rust/failover" />
</CardGroup>
