Files
rkm-conectasus-ci-sandbox/api/app/Exceptions/Ambulatorio/AgendamentoNaoPermitidoJornadaGrupoException.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

22 lines
446 B
PHP

<?php
namespace App\Exceptions\Ambulatorio;
use Exception;
use Illuminate\Http\Response;
class AgendamentoNaoPermitidoJornadaGrupoException extends Exception
{
public function __construct()
{
$this->message = 'Agendamento não permitido nesta jornada de grupo.';
}
public function render()
{
return response()->json([
'message' => $this->message
], Response::HTTP_BAD_REQUEST);
}
}