li3

NewsDocumentationVersionsPresentationsCommunityDevelopment
  • Documentation
  • Framework API (1.0.x)
  • lithium
  • data
  • source
  • database
  • adapter
  • PostgreSql
  • error()

Contents

  • ../

lithium\data\source\database\adapter\PostgreSql::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 array($error[1], $error[2]);
		}
		return null;
	}
GitHub / Twitter / Reddit / Stack Overflow
Testimonial Image

I wouldn't use it, but…
it's pretty rad.

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