Adafruit_CircuitPython_Azur.../adafruit_azureiot/iot_error.py
2020-04-16 17:33:26 -07:00

16 lines
325 B
Python

"""
An error from the IoT service
"""
class IoTError(Exception):
"""
An error from the IoT service
"""
def __init__(self, message: str):
"""Create the IoT Error
:param str message: The error message
"""
super(IoTError, self).__init__(message)
self.message = message