Source code for PyFunceble.exceptions

# pylint:disable=line-too-long
"""
The tool to check the availability or syntax of domain, IP or URL.

::


    ██████╗ ██╗   ██╗███████╗██╗   ██╗███╗   ██╗ ██████╗███████╗██████╗ ██╗     ███████╗
    ██╔══██╗╚██╗ ██╔╝██╔════╝██║   ██║████╗  ██║██╔════╝██╔════╝██╔══██╗██║     ██╔════╝
    ██████╔╝ ╚████╔╝ █████╗  ██║   ██║██╔██╗ ██║██║     █████╗  ██████╔╝██║     █████╗
    ██╔═══╝   ╚██╔╝  ██╔══╝  ██║   ██║██║╚██╗██║██║     ██╔══╝  ██╔══██╗██║     ██╔══╝
    ██║        ██║   ██║     ╚██████╔╝██║ ╚████║╚██████╗███████╗██████╔╝███████╗███████╗
    ╚═╝        ╚═╝   ╚═╝      ╚═════╝ ╚═╝  ╚═══╝ ╚═════╝╚══════╝╚═════╝ ╚══════╝╚══════╝

Provides our exceptions.

Author:
    Nissar Chababy, @funilrys, contactTATAfunilrysTODTODcom

Special thanks:
    https://pyfunceble.github.io/special-thanks.html

Contributors:
    https://pyfunceble.github.io/contributors.html

Project link:
    https://github.com/funilrys/PyFunceble

Project documentation:
    https://pyfunceble.readthedocs.io/en/master/

Project homepage:
    https://pyfunceble.github.io/

License:
::


    Copyright 2017, 2018, 2019, 2020 Nissar Chababy

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
"""


[docs]class PyFuncebleException(Exception): """ Describes our own exceptions. """
[docs]class PyFuncebleExternalException(PyFuncebleException): """ Describes an exception which is caused by an external input. """
[docs]class PyFuncebleInternalException(PyFuncebleException): """ Describes an exception which is caused by our own logic. """
[docs]class WrongParameterType(PyFuncebleInternalException): """ Describes a wrong parameter type. """
[docs]class WrongParameterValue(PyFuncebleInternalException): """ Describes a wrong parameter value. """
[docs]class NoInternetConnection(PyFuncebleExternalException): """ Describes a missing connection. """
[docs]class UnableToDownload(PyFuncebleExternalException): """ Describes a failing download. """
[docs]class ConfigurationFileNotFound(PyFuncebleExternalException): """ Describes a missing configuration file. """
[docs]class GitHubTokenNotFound(PyFuncebleExternalException): """ Describes a missing GitHub token. """
[docs]class GitLabTokenNotFound(PyFuncebleExternalException): """ Describes a missing GitLab token. """
[docs]class GitEmailNotFound(PyFuncebleExternalException): """ Describes a missing Git Email. """
[docs]class GitNameNotFound(PyFuncebleExternalException): """ Describes a missing Git Name. """
[docs]class PleaseUpdatePyFunceble(PyFuncebleInternalException): """ Describes the impossiblity to continue with an older version. """
[docs]class NoConversionMade(PyFuncebleInternalException): """ Describes the fact that a conversion was expected but none was made. """
[docs]class NoExtractionMade(PyFuncebleInternalException): """ Describes the fact that an extraction was expected but none was made. """
[docs]class UnknownSubject(PyFuncebleInternalException): """ Describes the fact that an unknown subject is inputed. """
[docs]class NoDownloadDestinationGiven(PyFuncebleInternalException): """ Describes the fact that the download destination was not declared. """
[docs]class NoDownloadLinkGiven(PyFuncebleInternalException): """ Describes the fact that no download link was declared. """
[docs]class UserAgentNotFound(PyFuncebleInternalException): """ Describes the fact that we could not find a user agent to work with. """
[docs]class UserAgentBrowserNotFound(PyFuncebleInternalException): """ Describes the fact that we could not find a valid browser to work with. """
[docs]class UserAgentPlatformNotFound(PyFuncebleInternalException): """ Describes the fact that we could not find a valid browser to work with. """