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

20 lines
431 B
PHP

<?php
namespace App\Exceptions\Ambulatorio;
use Exception;
use Illuminate\Http\Response;
class ProtocoloFechamentoException extends Exception
{
public function __construct()
{
$this->message = 'Existe(m) protocolo(s) de fechamento não informado(s) e/ou inválido(s).';
}
public function render()
{
return response()->json(['message' => $this->message], Response::HTTP_BAD_REQUEST);
}
}