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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
# ----------------------------------------------------------------------------
# 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 IOSourceError(Exception):
"""Raised when a file source cannot be resolved."""
pass
class FileFormatError(Exception):
"""Raised when a file cannot be parsed."""
pass
class UnrecognizedFormatError(FileFormatError):
"""Raised when a file's format is unknown, ambiguous, or unidentifiable."""
pass
class GenBankFormatError(FileFormatError):
"""Raised when a ``genbank`` formatted file cannot be parsed."""
pass
class EMBLFormatError(FileFormatError):
"""Raised when a ``EMBL`` formatted file cannot be parsed."""
pass
class GFF3FormatError(FileFormatError):
"""Raised when a ``GFF3`` formatted file cannot be parsed."""
pass
class BLAST7FormatError(FileFormatError):
"""Raised when a ``blast7`` formatted file cannot be parsed."""
pass
class ClustalFormatError(FileFormatError):
"""Raised when a ``clustal`` formatted file cannot be parsed."""
pass
class FASTAFormatError(FileFormatError):
"""Raised when a ``fasta`` formatted file cannot be parsed."""
pass
class QUALFormatError(FASTAFormatError):
"""Raised when a ``qual`` formatted file cannot be parsed."""
pass
class LSMatFormatError(FileFormatError):
"""Raised when a ``lsmat`` formatted file cannot be parsed."""
pass
class OrdinationFormatError(FileFormatError):
"""Raised when an ``ordination`` formatted file cannot be parsed."""
pass
class NewickFormatError(FileFormatError):
"""Raised when a ``newick`` formatted file cannot be parsed."""
pass
class FASTQFormatError(FileFormatError):
"""Raised when a ``fastq`` formatted file cannot be parsed."""
pass
class PhylipFormatError(FileFormatError):
"""Raised when a ``phylip`` formatted file cannot be parsed.
May also be raised when an object (e.g., ``TabularMSA``) cannot be written
in ``phylip`` format.
"""
pass
class QSeqFormatError(FileFormatError):
"""Raised when a ``qseq`` formatted file cannot be parsed."""
pass
class StockholmFormatError(FileFormatError):
"""Raised when a ``stockholm`` formatted file cannot be parsed."""
pass
class InvalidRegistrationError(Exception):
"""Raised if function doesn't meet the expected API of its registration."""
pass
class DuplicateRegistrationError(Exception):
"""Raised when a function is already registered in skbio.io"""
pass
|