(message, expt=None)
Raise an exception and logs the message.

    Example:
       >>> Util.raiseException('The value is not an integer', ValueError)

    :param message: the message of exception
    :param expt: the exception class
    :rtype: None
Raise an exception and logs the message.
Raise an exception and logs the message .
def raiseException(message, expt=None):
    """ Raise an exception and logs the message.

    Example:
       >>> Util.raiseException('The value is not an integer', ValueError)

    :param message: the message of exception
    :param expt: the exception class
    :rtype: None

    """
    logging.critical(message)
    if expt is None:
        raise Exception(message)
    else:
        raise (expt, message)
def raiseException ( message , expt = None ) : logging . critical ( message ) if expt is None : raise Exception ( message ) else : raise ( expt , message )