mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 14:14:22 +01:00
23 lines
587 B
Python
23 lines
587 B
Python
class InvalidParameter(ValueError):
|
|
"""Raised when a command line parameter is invalid (either missing or wrong)"""
|
|
|
|
def __init__(self, msg, **kwargs):
|
|
self.reason = msg
|
|
self.kwargs = kwargs
|
|
|
|
|
|
class InvalidKey(Exception):
|
|
"""Raised when there is an error loading the keys"""
|
|
|
|
def __init__(self, msg, **kwargs):
|
|
self.reason = msg
|
|
self.kwargs = kwargs
|
|
|
|
|
|
class TowerResponseError(Exception):
|
|
"""Raised when the tower responds with an error"""
|
|
|
|
def __init__(self, msg, **kwargs):
|
|
self.reason = msg
|
|
self.kwargs = kwargs
|