def METHOD_NAME(self, payload, exception):
    response = exception.response
    request = response.request.body
    if self._uid > 2:
        # rm pwd from dict and xml
        payload["auth"]["password"] = "****"
        request = "{}<password>****{}".format(
            request[: request.index("<password>")],
            request[request.index("</password>") :],
        )
    # Webservice error
    # on contextualise les réponses ws aux objets Odoo
    map_responses = {
        30204: "La 2eme ligne d'adresse du client partenaire "
        "est vide ou invalide",
        30221: "Le telephone du client ne doit comporter que des "
        "chiffres ou le symbole +: convertissez tous vos N° de "
        "telephone au format standard a partir du menu suivant:\n"
        "Configuration > Technique > Telephonie > Reformate "
        "les numeros de telephone ",
        30100: "La seconde ligne d'adresse de l'expéditeur est "
        "vide ou invalide.",
    }
    def format_one_exception(message, map_responses):
        param_message = {
            "ws_exception": "%s\n" % message["message"],
            "resolution": "",
        }
        if message and message.get("id") in map_responses.keys():
            param_message["resolution"] = _(
                "Résolution\n-------------\n%s" % map_responses[message["id"]]
            )
        return _(
            "Réponse de Laposte:\n"
            "%(ws_exception)s\n%(resolution)s" % param_message
        )
    parts = []
    for messages in exception.args:
        for message in messages:
            parts.append(format_one_exception(message, map_responses))
    ret_mess = _(
        "Incident\n-----------\n%s\n"
        "Données transmises:\n"
        "-----------------------------\n%s"
    ) % ("\n".join(parts), request.decode("utf-8"))
    return ret_mess