Retrieves database error message and error code.

Returns

array

Source

						public function error() {
		if ($this->connection->lastErrorMsg()) {
			return array($this->connection->lastErrorCode(), $this->connection->lastErrorMsg());
		}
	}