> 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_signature.md).

# Contracts.with\_error\_signature()

Adds a filter to get contracts that have an error with the given signature.

`with_error_signature(signature: str) ->` [`Contracts`](/glider-ide/api/contracts.md)

## Query Example

```python
from glider import *

def query():
  contracts = Contracts().with_error_signature('InsufficientBalance(uint256,uint256)').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%2FUqjmSu3wbAUfy9IXt4ef%2Fimage.png?alt=media&amp;token=ebe28f42-4047-42f5-8fe0-6a7a884768dc" alt=""><figcaption></figcaption></figure>
