RASCSI/python/common/src/rascsi/exceptions.py
nucleogenic 315ef9f248
Auto-format Python sources with black, fix all issues reported by flake8 (#1010)
* 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
2022-11-30 05:19:17 +00:00

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."""