-
-
Notifications
You must be signed in to change notification settings - Fork 50
Error Handling
Ivan William edited this page Aug 29, 2026
·
1 revision
use Satusehat\Integration\SSValidationError;
try {
$builder->validate();
} catch (SSValidationError $e) {
$errors = $e->getErrors();
foreach ($errors as $error) {
echo $error->getMessage();
}
}use Satusehat\Integration\SSResponse;
$response = new SSResponse($httpResponse);
if (!$response->isSuccess()) {
$errors = $response->getErrors();
}