2018-01-18 13:21:08 +00:00
|
|
|
from __future__ import print_function, absolute_import, division
|
|
|
|
|
|
|
|
|
2020-02-07 11:39:37 +00:00
|
|
|
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
|