public function error($which_connection='')
    {
        $con = $this->getNamedConnection($which_connection);

        if (!is_object($con)) {
            if ($this->last_connect_error) {
                return $this->last_connect_error;
            }

            return 'No database connection';
        }

        return $con->ErrorMsg();
    }
public function error($which_connection='')
    {
        $con = $this->getNamedConnection($which_connection);

        if (!is_object($con)) {
            if ($this->last_connect_error) {
                return $this->last_connect_error;
            }

            return 'No database connection';
        }

        return $con->ErrorMsg();
    }
public function error ( $ which_connection = '' ) { $ con = $ this -> getNamedConnection ( $ which_connection ) ; if ( ! is_object ( $ con ) ) { if ( $ this -> last_connect_error ) { return $ this -> last_connect_error ; } return 'No database connection' ; } return $ con -> ErrorMsg ( ) ; }
Get last error message
@param which_connection see method close
@return The message
Get last error message