Automatically check the licenses of package dependencies.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
licheck/licheck/exceptions.py

53 lines
1.4 KiB

#
# exceptions.py
#
# Copyright (C) 2021-2022 Franco Masotti (franco DoT masotti {-A-T-} tutanota DoT com)
#
# This file is part of licheck.
#
# licheck 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.
#
# licheck 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 licheck. If not, see <http://www.gnu.org/licenses/>.
#
"""Exceptions file."""
class BinaryDoesNotExist(Exception):
r"""Binary Does Not Exist."""
class InvalidConfiguration(Exception):
r"""Invalid Configuration."""
class InvalidCache(Exception):
r"""Invalid Cache."""
class InvalidOutput(Exception):
r"""The output from an external process in unexpected."""
class InvalidCommonDataStructure(Exception):
r"""Invalid Common Data Structure."""
class IncoherentProgrammingLanguageValue(Exception):
r"""The programming language value is not uniform."""
class NotAChecksum(Exception):
r"""String is not a valid SHA512 checksum."""
class IncoherentData(Exception):
r"""Input data is not what expected."""