Beispiel #1
0
 /**
  * If the result provided is not valid it will throw and exception
  * and the rollback any database transaction in progress
  * @param type $result
  * @return type
  * @throws Exception
  */
 function validateDBTransactionResult($result)
 {
     if (!$result) {
         $errorMessage = "Error de base de datos - " . $this->db->_error_message();
         $this->db->trans_rollback();
         throw new Exception($errorMessage);
     }
     return;
 }