Files
rkm-conectasus-ci-sandbox/api/app/Exceptions/WebService/Almoxarifado/Cliente/Saida/InvalidSearchPeriodException.php
Antonio Lopes dos Santos afec302c3e
All checks were successful
build-api-image / build (push) Successful in 51s
init commit
2026-08-04 16:52:02 -03:00

18 lines
477 B
PHP

<?php
namespace App\Exceptions\WebService\Almoxarifado\Cliente\Saida;
use App\Services\WebService\Almoxarifado\Cliente\SaidaService;
use Exception;
use Illuminate\Http\Response;
class InvalidSearchPeriodException extends Exception
{
public function render()
{
return response()->json([
'message' => 'O período de busca ultrapassa o limite de ' . SaidaService::LIMITE_DIAS_PERIODO_BUSCA . ' dias.'
], Response::HTTP_BAD_REQUEST);
}
}