This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions\WebService\Almoxarifado\Cliente\Entrada;
|
||||
|
||||
use App\Services\WebService\Almoxarifado\Cliente\EntradaService;
|
||||
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 ' . EntradaService::LIMITE_DIAS_PERIODO_BUSCA . ' dias.'
|
||||
], Response::HTTP_BAD_REQUEST);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user