lithium\data\source\database\adapter\PostgreSql::error()
Implements
lithium\data\source\Database::error()
Retrieves database error message and error code.
Returns
arraySource
public function error() {
if ($error = $this->connection->errorInfo()) {
return [$error[1], $error[2]];
}
return null;
}