File: exceptions.py

package info (click to toggle)
zigpy-xbee 0.21.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 308 kB
  • sloc: python: 2,445; makefile: 6; sh: 5
file content (21 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""Additional exceptions for XBee."""


class ATCommandException(Exception):
    """Base exception class for AT Command exceptions."""


class ATCommandError(ATCommandException):
    """Exception for AT Command Status 1 (ERROR)."""


class InvalidCommand(ATCommandException):
    """Exception for AT Command Status 2 (Invalid command)."""


class InvalidParameter(ATCommandException):
    """Exception for AT Command Status 3 (Invalid parameter)."""


class TransmissionFailure(ATCommandException):
    """Exception for Remote AT Command Status 4 (Transmission failure)."""