Source code for astroplan.exceptions
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from astropy.utils.exceptions import AstropyWarning
__all__ = ["TargetAlwaysUpWarning", "TargetNeverUpWarning",
"OldEarthOrientationDataWarning", "PlotWarning",
"PlotBelowHorizonWarning", "AstroplanWarning",
"MissingConstraintWarning"]
[docs]
class AstroplanWarning(AstropyWarning):
"""Superclass for warnings used by astroplan"""
[docs]
class TargetAlwaysUpWarning(AstroplanWarning):
"""Target is circumpolar"""
pass
[docs]
class TargetNeverUpWarning(AstroplanWarning):
"""Target never rises above horizon"""
pass
[docs]
class OldEarthOrientationDataWarning(AstroplanWarning):
"""Using old Earth rotation data from IERS"""
pass
[docs]
class PlotWarning(AstroplanWarning):
"""Warnings dealing with the plotting aspects of astroplan"""
pass
[docs]
class PlotBelowHorizonWarning(PlotWarning):
"""Warning for when something is hidden on a plot because it's below the horizon"""
pass
[docs]
class MissingConstraintWarning(AstroplanWarning):
"""Triggered when a constraint is expected but not supplied"""
pass