func (p *PagingGetMultiplePagesFailureURIPager) Err() error {
	return p.err
}
Err returns the last error encountered while paging.
package paginggroup
import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
	"net/http"
	"reflect"
)
type PagingFirstResponseEmptyPager struct {
	client    *PagingClient
	current   PagingFirstResponseEmptyResponse
	err       error
	requester func(context.Context) (*policy.Request, error)
	advancer  func(context.Context, PagingFirstResponseEmptyResponse) (*policy.Request, error)
}
func (p *PagingFirstResponseEmptyPager) Err() error {
	return p.err
}
func (p *PagingFirstResponseEmptyPager) NextPage(ctx context.Context) bool {
	var req *policy.Request
	var err error
	if !reflect.ValueOf(p.current).IsZero() {
		if p.current.ProductResultValue.NextLink == nil || len(*p.current.ProductResultValue.NextLink) == 0 {
			return false
		}
		req, err = p.advancer(ctx, p.current)
	} else {
		req, err = p.requester(ctx)
	}
	if err != nil {
		p.err = err
		return false
	}
	resp, err := p.client.con.Pipeline().Do(req)
	if err != nil {
		p.err = err
		return false
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		p.err = p.client.firstResponseEmptyHandleError(resp)
		return false
	}
	result, err := p.client.firstResponseEmptyHandleResponse(resp)
	if err != nil {
		p.err = err
		return false
	}
	p.current = result
	return true
}
func (p *PagingFirstResponseEmptyPager) PageResponse() PagingFirstResponseEmptyResponse {
	return p.current
}
type PagingGetMultiplePagesFailurePager struct {
	client    *PagingClient
	current   PagingGetMultiplePagesFailureResponse
	err       error
	requester func(context.Context) (*policy.Request, error)
	advancer  func(context.Context, PagingGetMultiplePagesFailureResponse) (*policy.Request, error)
}
func (p *PagingGetMultiplePagesFailurePager) Err() error {
	return p.err
}
func (p *PagingGetMultiplePagesFailurePager) NextPage(ctx context.Context) bool {
	var req *policy.Request
	var err error
	if !reflect.ValueOf(p.current).IsZero() {
		if p.current.ProductResult.NextLink == nil || len(*p.current.ProductResult.NextLink) == 0 {
			return false
		}
		req, err = p.advancer(ctx, p.current)
	} else {
		req, err = p.requester(ctx)
	}
	if err != nil {
		p.err = err
		return false
	}
	resp, err := p.client.con.Pipeline().Do(req)
	if err != nil {
		p.err = err
		return false
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		p.err = p.client.getMultiplePagesFailureHandleError(resp)
		return false
	}
	result, err := p.client.getMultiplePagesFailureHandleResponse(resp)
	if err != nil {
		p.err = err
		return false
	}
	p.current = result
	return true
}
func (p *PagingGetMultiplePagesFailurePager) PageResponse() PagingGetMultiplePagesFailureResponse {
	return p.current
}
type PagingGetMultiplePagesFailureURIPager struct {
	client    *PagingClient
	current   PagingGetMultiplePagesFailureURIResponse
	err       error
	requester func(context.Context) (*policy.Request, error)
	advancer  func(context.Context, PagingGetMultiplePagesFailureURIResponse) (*policy.Request, error)
}