app/error/missingError.py
class Error(Exception):
"""Base class for exceptions in this module."""
pass
class MissingError(Error):
"""Exception raised for errors in the input.
Attributes:
expr -- input expression in which the error occurred
msg -- explanation of the error
"""
def __init__(self, expr, msg):
self.expr = expr
self.msg = msg