# -*- coding: utf-8 -*-
#
#                py-google-search  Copyright (C) 2018  Javinator9889                
#   This program comes with ABSOLUTELY NO WARRANTY; for details add the "-h" option.
#           This is free software, and you are welcome to redistribute it
#                 under certain conditions; type "-L" for details.
#


class InvalidCombinationException(RuntimeError):
    def __init__(self, message=None):
        # type: (str) -> None
        self.__message = message
        super(InvalidCombinationException, self).__init__(message)


class TimeCombinationNonValid(InvalidCombinationException):
    def __init__(self, message=None):
        # type: (str) -> None
        super(TimeCombinationNonValid, self).__init__(message)


class MixedSearchException(InvalidCombinationException):
    def __init__(self, message=None):
        # type: (str) -> None
        super(MixedSearchException, self).__init__(message)


class NullQueryError(RuntimeError):
    def __init__(self, message=None):
        # type: (str) -> None
        self.__message = message
        super(NullQueryError, self).__init__(message)


class GoogleOverloadedException(RuntimeError):
    def __init__(self, message=None):
        # type: (str) -> None
        self.__message = message
        super(GoogleOverloadedException, self).__init__(message)


class GoogleBlockingConnectionsError(RuntimeError):
    def __init__(self, message=None):
        # type: (str) -> None
        self.__message = message
        super(GoogleBlockingConnectionsError, self).__init__(message)
