@classmethod
def raise_exception(cls, error, task_id, upload_layer, verbose_message):
    """
        A method to create a new saved exception.
        """
    if verbose_message is None:
        verbose_message = error
    exception = cls(error=error, verbose_traceback=verbose_message, task_id
        =task_id, upload_layer=upload_layer)
    exception.save()
    return exception
