Source code for astrophot.errors.models
from .base import AstroPhotError
__all__ = ("InvalidModel", "InvalidTarget", "UnrecognizedModel")
[docs]
class InvalidModel(AstroPhotError):
"""
Catches when a model object is inapropriate for this instance.
"""
...
[docs]
class InvalidTarget(AstroPhotError):
"""
Catches when a target object is assigned incorrectly.
"""
...
[docs]
class UnrecognizedModel(AstroPhotError):
"""
Raised when the user tries to invoke a model that does not exist.
"""
...