FIX: Add custom HttpException

This commit is contained in:
Juan Pablo Vial
2025-06-10 19:36:56 -04:00
parent b7e0217cf3
commit c02c6eb15c
3 changed files with 14 additions and 3 deletions

View File

@ -0,0 +1,13 @@
<?php
namespace Incoviba\Common\Implement\Exception;
use Throwable;
use Exception;
class HttpException extends Exception
{
public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}
}

View File

@ -6,7 +6,6 @@
"ext-curl": "*", "ext-curl": "*",
"ext-dom": "*", "ext-dom": "*",
"ext-gd": "*", "ext-gd": "*",
"ext-http": "*",
"ext-openssl": "*", "ext-openssl": "*",
"ext-pdo": "*", "ext-pdo": "*",
"berrnd/slim-blade-view": "^1", "berrnd/slim-blade-view": "^1",

View File

@ -1,14 +1,13 @@
<?php <?php
namespace Incoviba\Service\Venta\MediosPago; namespace Incoviba\Service\Venta\MediosPago;
use HttpException;
use PDOException; use PDOException;
use Psr\Http\Client\ClientExceptionInterface; use Psr\Http\Client\ClientExceptionInterface;
use Psr\Http\Client\ClientInterface; use Psr\Http\Client\ClientInterface;
use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ResponseInterface;
use Incoviba\Common\Define\Repository; use Incoviba\Common\Define\Repository;
use Incoviba\Common\Ideal\LoggerEnabled; use Incoviba\Common\Ideal\LoggerEnabled;
use Incoviba\Common\Implement\Exception\{EmptyResponse, EmptyResult}; use Incoviba\Common\Implement\Exception\{EmptyResponse, EmptyResult, HttpException};
use Incoviba\Exception\InvalidResult; use Incoviba\Exception\InvalidResult;
abstract class AbstractEndPoint extends LoggerEnabled implements EndPoint abstract class AbstractEndPoint extends LoggerEnabled implements EndPoint