Source code for stsynphot.exceptions

# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Custom exceptions for `stsynphot` to raise."""

# SYNPHOT
from synphot.exceptions import SynphotError

__all__ = ['ParserError', 'GenericASTTraversalPruningException',
           'ParameterOutOfBounds', 'GraphtabError', 'UnusedKeyword',
           'IncompleteObsmode', 'AmbiguousObsmode']


[docs]class ParserError(SynphotError): """Exceptions for language parser.""" pass
[docs]class GenericASTTraversalPruningException(ParserError): """SPARK AST traversal pruning exception.""" pass
[docs]class ParameterOutOfBounds(SynphotError): """Exceptions for catalog problems.""" pass
[docs]class GraphtabError(SynphotError): """Exceptions to do with graph table traversal.""" pass
[docs]class UnusedKeyword(GraphtabError): """Unused keyword is not allowed in graph table.""" pass
[docs]class IncompleteObsmode(GraphtabError): """Incomplete observation mode is not allowed in graph table.""" pass
[docs]class AmbiguousObsmode(GraphtabError): """Ambiguous observation mode is not allowed in graph table.""" pass
class PixscaleNotFoundError(SynphotError): """Undefined pixel scale for a given observation mode.""" pass