> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/contracts/contracts.with_error_prefix.md).

# Contracts.with\_error\_prefix()

Adds a filter to get contracts that have an error whose name has the given prefix.

`with_error_prefix(prefix: str, sensitivity: bool = True) ->` [`Contracts`](/glider-ide/api/contracts.md)

## Example Query

```python
from glider import *

def query():
  contracts = Contracts().with_error_prefix("Wrong").exec(1)
  errors = contracts[0].errors().exec()
  for error in errors:
    print(error.signature)

  return contracts
```

## Output Example

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2F00tmPM3K4z4j7iAWNrcD%2Fimage.png?alt=media&amp;token=022168e6-c577-4b00-84d2-53f3f099a776" alt=""><figcaption></figcaption></figure>
