Atualizando Database.class.php

This commit is contained in:
Kenio 2025-08-25 14:44:25 -03:00
parent 543bc0be42
commit b368da4d04
2 changed files with 9 additions and 7 deletions

View file

@ -255,7 +255,7 @@ try {
$jsonLog->database->db_accessible)){
/** Informo */
throw new InvalidArgumentException('Não foi possível cadastrar as informações de banco de dados', 0);
throw new InvalidArgumentException('Não foi possível atualizar as informações de banco de dados', 0);
}

View file

@ -117,10 +117,14 @@ class Database
/** Parametros */
$this->clientId = $clientId;
$this->fileSize = $fileSize;
$this->lastModified = $lastModified;
$this->dbAccessible = $dbAccessible;
echo $this->clientId = $clientId;
echo '---';
echo $this->fileSize = $fileSize;
echo '---';
echo $this->lastModified = $lastModified;
echo '---';
echo $this->dbAccessible = $dbAccessible;
echo '---';
/** Consulta SQL */
$this->sql = 'insert into db(client_id,
@ -154,8 +158,6 @@ class Database
/** Desfaz a transação */
$this->connection->connect()->rollback();
echo $exception->getMessage();
/** Informo */
throw new InvalidArgumentException($exception->getMessage(), 0);
}