/usr/lib/python3/dist-packages/libtmux/exc.py is in python3-libtmux 0.7.7-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | # -*- coding: utf-8 -*-
"""libtmux exceptions.
libtmux.exc
~~~~~~~~~~~
"""
from __future__ import absolute_import, unicode_literals, with_statement
class LibTmuxException(Exception):
"""Base Exception for libtmux Errors."""
class TmuxSessionExists(LibTmuxException):
"""Session does not exist in the server."""
pass
class TmuxCommandNotFound(LibTmuxException):
"""Application binary for tmux not found."""
pass
class VersionTooLow(LibTmuxException):
"""Raised if tmux below the minimum version to use libtmux."""
pass
class BadSessionName(LibTmuxException):
"""Disallowed session name for tmux (empty, contains periods or colons)."""
pass
class OptionError(LibTmuxException):
"""Root error for any error involving invalid, ambiguous or bad options."""
pass
class UnknownOption(OptionError):
"""Option unknown to tmux show-option(s) or show-window-option(s)."""
pass
class InvalidOption(OptionError):
"""Option invalid to tmux, introduced in tmux v2.4."""
pass
class AmbiguousOption(OptionError):
"""Option that could potentially match more than one."""
pass
|