]> kaliko git repositories - python-musicpdaio.git/blob - mpdaio/exceptions.py
Partially implement protocol (AsyncIO POC)
[python-musicpdaio.git] / mpdaio / exceptions.py
1 # -*- coding: utf-8 -*-
2 # SPDX-FileCopyrightText: 2012-2024  kaliko <kaliko@azylum.org>
3 # SPDX-License-Identifier: LGPL-3.0-or-later
4
5 class MPDError(Exception):
6     """Main musicpd Exception"""
7
8
9 class MPDConnectionError(MPDError):
10     """Fatal Connection Error, cannot recover from it."""
11
12
13 class MPDProtocolError(MPDError):
14     """Fatal Protocol Error, cannot recover from it"""
15
16 class MPDCommandError(MPDError):
17     """Malformed command, socket should be fine, can reuse it"""