Debian Codegraph @

src/nitrokey/trussed/_bootloader/nrf52_upload/exceptions.py

raw
1 from typing import Optional
2
3
4 class NordicSemiException(Exception):
5 """
6 Exception used as based exception for other exceptions defined in this package.
7 """
8
9 def __init__(self, msg: str, error_code: Optional[int] = None) -> None:
10 super(NordicSemiException, self).__init__(msg)
11 self.msg = msg
12 self.error_code = error_code