Example #1
0
 /**
  * Object constructor.
  *
  * @param int    $expectedRowCount The expected number of rows selected.
  * @param int    $actualRowCount   The actual number of rows selected.
  * @param string $message          The SQL query
  */
 public function __construct($expectedRowCount, $actualRowCount, $message)
 {
     parent::__construct('%s', self::message($expectedRowCount, $actualRowCount, $message));
     $this->expectedRowCount = $expectedRowCount;
     $this->actualRowCount = $actualRowCount;
     $this->query = $message;
 }
 /**
  * Object constructor.
  *
  * @param int    $errno   The error code value of the error ($mysqli->errno).
  * @param string $error   Description of the last error ($mysqli->error).
  * @param string $message The SQL query or function name.
  */
 public function __construct($errno, $error, $message)
 {
     parent::__construct('%s', self::message($errno, $error, $message));
     $this->errno = $errno;
     $this->error = $error;
     $this->query = $message;
 }