# tmuxp.exc.BeforeLoadScriptError.__init__

- **Module:** tmuxp.exc
- **Package:** tmuxp
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/tmuxp/blob/153acdf6ff1268b14d3d03ed488f545a7123c8f1/src/tmuxp/exc.py#L228
- **Page:** https://libtmux.org/en/py/stable/workspace/reference/tmuxp-exc-beforeloadscripterror-__init__/

```
tmuxp.exc.BeforeLoadScriptError.__init__(
    self,
    returncode: int,
    cmd: str,
    output: str | None = None,
) -> None
```

## Parameters

- `returncode` (`int`)
- `cmd` (`str`)
- `output` (`str | None`)
