mirror of
https://github.com/akuker/RASCSI.git
synced 2024-05-28 09:41:33 +00:00
315ef9f248
* Update config for black and flake8 * Auto-format Python sources with black * Fix issues reported by flake8 * Exclude protobuf files from black * Address formatting feedback
16 lines
476 B
Python
16 lines
476 B
Python
"""
|
|
Module for custom exceptions raised by the rascsi module
|
|
"""
|
|
|
|
|
|
class FailedSocketConnectionException(Exception):
|
|
"""Raise when a rascsi protobuf socket connection cannot be established after multiple tries."""
|
|
|
|
|
|
class EmptySocketChunkException(Exception):
|
|
"""Raise when a socket payload contains an empty chunk which implies a possible problem."""
|
|
|
|
|
|
class InvalidProtobufResponse(Exception):
|
|
"""Raise when a rascsi socket payload contains unpexpected data."""
|