HamRemote/opus/exceptions.py

11 lines
180 B
Python
Raw Normal View History

2023-02-09 08:33:01 +01:00
from opus.api.info import strerror
class OpusError(Exception):
def __init__(self, code):
self.code = code
def __str__(self):
return strerror(self.code)