# RetryOutputParser

> **Class** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/output_parsers/retry/RetryOutputParser)

Wrap a parser and try to fix parsing errors.

Does this by passing the original prompt and the completion to another
LLM, and telling it the completion did not satisfy criteria in the prompt.

## Signature

```python
RetryOutputParser()
```

## Extends

- `BaseOutputParser[T]`

## Properties

- `parser`
- `retry_chain`
- `max_retries`
- `legacy`
- `OutputType`

## Methods

- [`from_llm()`](https://reference.langchain.com/python/langchain-classic/output_parsers/retry/RetryOutputParser/from_llm)
- [`parse_with_prompt()`](https://reference.langchain.com/python/langchain-classic/output_parsers/retry/RetryOutputParser/parse_with_prompt)
- [`aparse_with_prompt()`](https://reference.langchain.com/python/langchain-classic/output_parsers/retry/RetryOutputParser/aparse_with_prompt)
- [`parse()`](https://reference.langchain.com/python/langchain-classic/output_parsers/retry/RetryOutputParser/parse)
- [`get_format_instructions()`](https://reference.langchain.com/python/langchain-classic/output_parsers/retry/RetryOutputParser/get_format_instructions)

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/ee95ad6907f5eab94644183393a20aa2a032bb19/libs/langchain/langchain_classic/output_parsers/retry.py#L54)