# libtmux.exc.SocketPathTooLong.__init__

- **Module:** libtmux.exc
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/efdbb5637666b166358772ecc737b3807beab21e/src/libtmux/exc.py#L473
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-exc-socketpathtoolong-__init__/

```
libtmux.exc.SocketPathTooLong.__init__(
    self,
    socket_path: StrPath,
    limit: int,
    args: object,
    socket_name: str | None = None,
    env_var: str | None = None,
    env_value: str | None = None,
) -> None
```

## Parameters

- `socket_path` (`StrPath`)
- `limit` (`int`)
- `args` (`object`)
- `socket_name` (`str | None`)
  Default: `None`.
- `env_var` (`str | None`)
  Default: `None`.
- `env_value` (`str | None`)
  Default: `None`.
