2020-03-31 13:38:51 +01:00

11 lines
278 B
Python

class Error(Exception):
"""Base Cu2Qu exception class for all other errors."""
class ApproxNotFoundError(Error):
def __init__(self, curve):
message = "no approximation found: %s" % curve
super(Error, self).__init__(message)
self.curve = curve