# libtmux.exc.PaneError.__init__

- **Module:** libtmux.exc
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/exc.py#L49
- **Inherited from:** libtmux.exc.LibTmuxException
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-exc-paneerror-__init__/

```
libtmux.exc.PaneError.__init__(
    self, args: object, subcommand: str | None = None
) -> None
```

## Parameters

- `args` (`object`)
- `subcommand` (`str | None`)
