Source code for flint.exceptions
from __future__ import annotations
[docs]
class FlintException(Exception):
"""Base exception for Flint"""
pass
[docs]
class UnknownContainerException(FlintException):
"""An unknown container was requested"""
pass
[docs]
class NamingException(FlintException):
"""Raised when there are issues with naming"""
pass
[docs]
class NotSupportedError(FlintException):
"""Raised when something is not supported"""
pass
[docs]
class AttemptRerunException(FlintException):
"""Intended to be used in stream call back functions to
capture strange errors and signify that they should be
rerun. For instance, strange BANE deadlocking errors."""
[docs]
class TimeLimitException(FlintException):
"""A function has taken too long to execute"""
pass
[docs]
class MSError(FlintException):
"""An error for MS related things"""
pass
[docs]
class FrequencyMismatchError(FlintException):
"""Raised when there are differences in frequencies"""
[docs]
class PhaseOutlierFitError(FlintException):
"""Raised when the phase outlier fit routine fails."""
pass
[docs]
class GainCalError(FlintException):
"""Raised when it appears like the casa gaincal task fails."""
pass
[docs]
class CleanDivergenceError(FlintException):
"""Raised if it is detected that cleaning has diverged."""
pass
[docs]
class TarArchiveError(FlintException):
"""Raised it the flint tarball is not created successfullty"""