Source code for regularizepsf.exceptions

"""Errors and warnings for regularizepsf."""


[docs] class RegularizePSFError(Exception): """Base class for regularizepsf exceptions."""
[docs] class InvalidCoordinateError(RegularizePSFError): """The key for this coordinate does not exist in the model."""
[docs] class IncorrectShapeError(RegularizePSFError): """The shapes do not match for the model and the value."""
[docs] class InvalidFunctionError(RegularizePSFError): """Function for functional model has invalid parameters."""
[docs] class FunctionParameterMismatchError(RegularizePSFError): """Function evaluated with nonexistent kwargs."""
[docs] class PSFBuilderError(RegularizePSFError): """Something went wrong building the PSF model."""
[docs] class InvalidDataError(RegularizePSFError): """Invalid input data provided for PSF generation."""