Files
rkm-conectasus-ci-sandbox/api/app/Exceptions/AtencaoBasica/AcompanhamentoException.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
407 B
PHP

<?php
namespace App\Exceptions\AtencaoBasica;
use Exception;
use Illuminate\Http\Response;
class AcompanhamentoException extends Exception
{
public function render()
{
return response()->json([
'message' => 'O acompanhamento <strong>' . json_decode($this->getMessage()) .'</strong> é incompatível com o sexo do(a) paciente.'
], Response::HTTP_BAD_REQUEST);
}
}