li3

NewsDocumentationVersionsPresentationsCommunityDevelopment
  • Documentation
  • Framework API (1.1.x)
  • lithium
  • data
  • source
  • database
  • adapter
  • MySql
  • error()

Contents

  • ../

lithium\data\source\database\adapter\MySql::error()

Implements lithium\data\source\Database::error()
public method

Retrieves database error message and error code.

Returns

array

Source

	public function error() {
		if ($error = $this->connection->errorInfo()) {
			return [$error[1], $error[2]];
		}
	}
GitHub / Twitter / Reddit / Stack Overflow
Testimonial Image

I think it's time you started
writing better code.

Pretty much everything is (c) 2009-2025 and beyond, the Union of RAD.