18 lines
499 B
PHP
18 lines
499 B
PHP
<?php
|
|
|
|
namespace App\Exceptions\WebService\Almoxarifado\Cliente\PeriodoContabil;
|
|
|
|
use App\Services\WebService\Almoxarifado\Cliente\PeriodoContabilService;
|
|
use Exception;
|
|
use Illuminate\Http\Response;
|
|
|
|
class InvalidDaysLimitException extends Exception
|
|
{
|
|
public function render()
|
|
{
|
|
return response()->json([
|
|
'message' => 'O período contábil ultrapassa o limite de ' . PeriodoContabilService::LIMITE_DIAS_PERIODO . ' dias.'
|
|
], Response::HTTP_BAD_REQUEST);
|
|
}
|
|
}
|