def restize_integrity_error(internal_error):
     if "unique_allocine_venue_provider_price_rule" in str(
             internal_error.orig):
         return [
             "global", "Vous ne pouvez avoir qu''un seul prix par catégorie"
         ]
     if "check_price_is_not_negative" in str(internal_error.orig):
         return ["global", "Vous ne pouvez renseigner un prix négatif"]
     return PcObject.restize_integrity_error(internal_error)
 def restize_internal_error(ie: Exception) -> list[str]:
     if "tooManyBookings" in str(ie.orig):
         return [
             "global",
             "La quantité disponible pour cette offre est atteinte."
         ]
     if "insufficientFunds" in str(ie.orig):
         return [
             "insufficientFunds",
             "Le solde de votre pass est insuffisant pour réserver cette offre."
         ]
     return PcObject.restize_integrity_error(ie)
 def restize_data_error(data_error):
     if "wrong_price" in str(data_error):
         return ["global", "Le prix doit être un nombre décimal"]
     return PcObject.restize_integrity_error(data_error)
 def restize_integrity_error(internal_error):
     if "unique_venue_provider" in str(internal_error.orig):
         return ["global", "Votre lieu est déjà lié à cette source"]
     return PcObject.restize_integrity_error(internal_error)