for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Werkspot\KvkApi\Http\Adapter\Guzzle\Exception;
use GuzzleHttp\Exception\RequestException;
use Werkspot\KvkApi\Exception\KvkApiException;
final class Handler
{
public static function handleRequestException(RequestException $exception): void
switch ($exception->getCode()) {
case 404:
throw new NotFoundException();
}
throw new KvkApiException($exception->getMessage());