File: exceptions.py

package info (click to toggle)
astroml 1.0.2-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 928 kB
  • sloc: python: 5,731; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 514 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""
This module contains errors/exceptions and warnings for astroML.
"""
from astropy.utils.exceptions import AstropyWarning


class AstroMLWarning(AstropyWarning):
    """
    A base warning class from which all AstroML warnings should inherit.

    This class is subclassed from AstropyWarnings, so warnings inherited by
    this class is handled by the Astropy logger.

    """


class AstroMLDeprecationWarning(AstroMLWarning):
    """
    A warning class to indicate a deprecated feature in astroML.

    """