---
title: "ValidationException — erreur de validation"
method: GET
path: "/Exceptions/ValidationException"
tags: ["Exceptions"]
---

# ValidationException — erreur de validation

`GET /Exceptions/ValidationException`

Levée quand l'API retourne une erreur de validation (422).

```php
use QrCommunication\VivaMerchant\Exceptions\ValidationException;

try {
    // ...
} catch (ValidationException $e) {
    echo $e->errors;
    // ['amount' => ['Amount must be positive'], ...]
}
```

**Propriétés :**
- `errors` (`array<string, string[]>`) — Erreurs par champ

## Response `200`

Classe ValidationException

---

[API](https://skmtc.net/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php.md) · [All operations](https://skmtc.net/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qrcommunication/viva-wallet-merchant-sdk-re-fe-rence-php/versions/bcafd06ce584/schema)
