> ## 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 • 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(error: str, cooldown_seconds: float) -> None
```

## Parameters

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

<ParamField query="cooldown_seconds" type="float" required={false} default="30.0">
  No description available.
</ParamField>

## Uses

* `time.time`

## Used By

* [`FailoverManager.mark_failure`](../functions/FailoverManager-mark_failure)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/llm/failover.py#L132">
  `praisonaiagents/llm/failover.py` at line 132
</Card>
