Source code for macsypy.error

#########################################################################
# MacSyFinder - Detection of macromolecular systems in protein dataset  #
#               using systems modelling and similarity search.          #
# Authors: Sophie Abby, Bertrand Neron                                  #
# Copyright (c) 2014-2023  Institut Pasteur (Paris) and CNRS.           #
# See the COPYRIGHT file for details                                    #
#                                                                       #
# This file is part of MacSyFinder package.                             #
#                                                                       #
# MacSyFinder is free software: you can redistribute it and/or modify   #
# it under the terms of the GNU General Public License as published by  #
# the Free Software Foundation, either version 3 of the License, or     #
# (at your option) any later version.                                   #
#                                                                       #
# MacSyFinder is distributed in the hope that it will be useful,        #
# but WITHOUT ANY WARRANTY; without even the implied warranty of        #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the          #
# GNU General Public License for more details .                         #
#                                                                       #
# You should have received a copy of the GNU General Public License     #
# along with MacSyFinder (COPYING).                                     #
# If not, see <https://www.gnu.org/licenses/>.                          #
#########################################################################

"""
Manage MacSyFinder specific errors
"""

[docs]class MacsypyError(Exception): """ The base class for MacSyFinder specific exceptions. """
[docs]class MacsydataError(MacsypyError): """ Raised when error is encounter during model package handling """
[docs]class MacsyDataLimitError(MacsydataError): """ Raised when the maximum number of github api call is reached """
[docs]class OptionError(MacsypyError): """ Raised when command line option is not set properly """
[docs]class ModelInconsistencyError(MacsypyError): """ Raised when a definition model is not consistent. """
[docs]class SystemDetectionError(MacsypyError): """ Raised when the detection of systems from Hits encountered a problem. """
[docs]class Timeout(MacsypyError): """ Raised when best solution reach the timeout """
[docs]class EmptyFileError(MacsypyError): """ Raised when fasta file does not contains sequences """