Source code for jwst.associations.exceptions

__all__ = [
    'AssociationError',
    'AssociationNotAConstraint',
    'AssociationNotValidError',
]


[docs]class AssociationError(Exception): """Basic errors related to Associations""" def __init__(self, message='No explanation given'): self.message = message def __str__(self): return 'Association Exception: {}'.format(self.message)
[docs]class AssociationNotAConstraint(AssociationError): """No matching constraint found"""
[docs]class AssociationNotValidError(AssociationError): """Given data structure is not a valid association"""