identificador = $identificador; $this->indice = $indice; parent::__construct(); } public function render() { $msg = "Ferida com identificador externo '{$this->identificador}' não encontrada."; if ($this->indice !== null) { $msg = "Ferida [{$this->indice}]: {$msg}"; } return response()->json([ 'message' => $msg ], Response::HTTP_UNPROCESSABLE_ENTITY); } }