> 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/callable/callable.catch_instructions.md).

# Callable.catch\_instructions()

Returns catch instructions of the function/modifier.

`catch_instructions() →` [`Instructions`](/glider-ide/api/instructions.md)

## Example

```python
from glider import *
def query():
  functions = Functions().exec(5000)

  catch_instructions = []
  for function in functions:
    # List all catch instructions inside a try/catch block from the given functions
    for instruction in function.catch_instructions().exec():
      catch_instructions.append(instruction)

  return catch_instructions
```

## Example output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2F0ulyMAlv23jSWMzyvmnh%2Fimage.png?alt=media&amp;token=3dda6955-e4bc-4325-914b-339877057723" alt=""><figcaption></figcaption></figure>
