(exception)
return {'errmsg': str(exception),
            'errtype': exception.__class__.__name__}
Convert an Exception into a failure document for publishing.
Convert an Exception into a failure document for publishing.
Convert an Exception into a failure document for publishing .
def _convert_exception(exception):
    """Convert an Exception into a failure document for publishing."""
    return {'errmsg': str(exception),
            'errtype': exception.__class__.__name__}
def _convert_exception ( exception ) : return { 'errmsg' : str ( exception ) , 'errtype' : exception . __class__ . __name__ }