aztk/utils/helpers.py
def format_batch_exception(batch_exception):
    """
    Returns the contents of the specified Batch exception.
    :param batch_exception:
    """
    l = []
    l.append("-------------------------------------------")
    if batch_exception.error and batch_exception.error.message and batch_exception.error.message.value:
        l.append(batch_exception.error.message.value)
        if batch_exception.error.values:
            l.append("")
            for mesg in batch_exception.error.values:
                l.append("{0}:\t{1}".format(mesg.key, mesg.value))
    l.append("-------------------------------------------")

    return "\n".join(l)

    Returns the contents of the specified Batch exception.
    :param batch_exception:
    
Returns the contents of the specified Batch exception.
Returns the contents of the specified Batch exception .
def format_batch_exception(batch_exception):
    l = []
    l.append("-------------------------------------------")
    if batch_exception.error and batch_exception.error.message and batch_exception.error.message.value:
        l.append(batch_exception.error.message.value)
        if batch_exception.error.values:
            l.append("")
            for mesg in batch_exception.error.values:
                l.append("{0}:\t{1}".format(mesg.key, mesg.value))
    l.append("-------------------------------------------")
    return "\n".join(l)
def format_batch_exception ( batch_exception ) : l = [ ] l . append ( "-------------------------------------------" ) if batch_exception . error and batch_exception . error . message and batch_exception . error . message . value : l . append ( batch_exception . error . message . value ) if batch_exception . error . values : l . append ( "" ) for mesg in batch_exception . error . values : l . append ( "{0}:\t{1}" . format ( mesg . key , mesg . value ) ) l . append ( "-------------------------------------------" ) return "\n" . join ( l )
Returns the contents of the specified Batch exception.
Returns the contents of the specified Batch exception .
"""
    Returns the contents of the specified Batch exception.
    :param batch_exception:
    """
batch_exception
None