(event)
return {
        "code": event.error_code,
        "message": MessagingEvent.ERROR_MESSAGES.get(event.error_code, None),
        "message_detail": event.additional_error_text
    }
Details about the error at the event level. Not related to errors of individual messages.
Details about the error at the event level. Not related to errors of individual messages.
Details about the error at the event level . Not related to errors of individual messages .
def _serialize_event_error(event):
    """Details about the error at the event level. Not related to errors of individual messages."""
    if not event.error_code:
        return None

    return {
        "code": event.error_code,
        "message": MessagingEvent.ERROR_MESSAGES.get(event.error_code, None),
        "message_detail": event.additional_error_text
    }
def _serialize_event_error ( event ) : if not event . error_code : return None return { "code" : event . error_code , "message" : MessagingEvent . ERROR_MESSAGES . get ( event . error_code , None ) , "message_detail" : event . additional_error_text }