HamRemote/opus/exceptions.py
2023-02-09 08:33:01 +01:00

11 lines
180 B
Python

from opus.api.info import strerror
class OpusError(Exception):
def __init__(self, code):
self.code = code
def __str__(self):
return strerror(self.code)