File: _exceptions.py

package info (click to toggle)
python-nice-go 1.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 608 kB
  • sloc: python: 1,981; makefile: 3
file content (25 lines) | stat: -rw-r--r-- 482 bytes parent folder | download
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
"""Exceptions for Nice G.O. API."""


class NiceGOError(Exception):
    """Base exception for Nice G.O. API."""


class NoAuthError(NiceGOError):
    """Not authenticated exception."""


class ApiError(NiceGOError):
    """API error."""


class AuthFailedError(NiceGOError):
    """Authentication failed. Check your credentials."""


class WebSocketError(NiceGOError):
    """WebSocket error."""


class ReconnectWebSocketError(WebSocketError):
    """Reconnect WebSocket error."""