File: _exception.py

package info (click to toggle)
python-skbio 0.6.2-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 9,312 kB
  • sloc: python: 60,482; ansic: 672; makefile: 224
file content (37 lines) | stat: -rw-r--r-- 758 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE.txt, distributed with this software.
# ----------------------------------------------------------------------------


class TreeError(Exception):
    """General tree error."""

    pass


class NoLengthError(TreeError):
    """Missing length when expected."""

    pass


class DuplicateNodeError(TreeError):
    """Duplicate nodes with identical names."""

    pass


class MissingNodeError(TreeError):
    """Expecting a node."""

    pass


class NoParentError(MissingNodeError):
    """Missing a parent."""

    pass