Files
ATtiny814-USB-PD-Adapter/software/tools/pymcuprog/libs/pyedbglib/pyedbglib_errors.py
2022-09-11 11:42:08 +02:00

22 lines
513 B
Python

"""
pyedbglib specific exceptions
"""
class PyedbglibError(Exception):
"""
Base class for all pyedbglib specific exceptions
"""
def __init__(self, msg=None, code=0):
super(PyedbglibError, self).__init__(msg)
self.code = code
class PyedbglibNotSupportedError(PyedbglibError):
"""
Signals that an attempted operation is not supported
"""
def __init__(self, msg=None, code=0):
super(PyedbglibNotSupportedError, self).__init__(msg)
self.code = code