system/Database/Query.php
public function setError(int $code, string $error)
	{
		$this->errorCode   = $code;
		$this->errorString = $error;

		return $this;
	}
public function setError(int $code, string $error)
	{
		$this->errorCode   = $code;
		$this->errorString = $error;

		return $this;
	}
Stores the error description that happened for this query.

@param integer $code
@param string  $error

@return $this