lithium\data\source\database\adapter\PostgreSql::error PHP Method

error() public method

Retrieves database error message and error code.
public error ( ) : array
return array
    public function error()
    {
        if ($error = $this->connection->errorInfo()) {
            return array($error[1], $error[2]);
        }
        return null;
    }