Debian Codegraph @

bindings/python/gpiod/exception.py

raw symbols SCIP
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 # SPDX-FileCopyrightText: 2022 Bartosz Golaszewski <[email protected]>
3
4 __all__ = ["ChipClosedError", "RequestReleasedError"]
5
6
7 class ChipClosedError(Exception):
8 """
9 Error raised when an already closed chip is used.
10 """
11
12 def __init__(self):
13 super().__init__("I/O operation on closed chip")
14
15
16 class RequestReleasedError(Exception):
17 """
18 Error raised when a released request is used.
19 """
20
21 def __init__(self):
22 super().__init__("GPIO lines have been released")