AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Exception: Aws::PageableResponse::LastPageError

Inherits:
RuntimeError
  • Object
show all
Defined in:
gems/aws-sdk-core/lib/aws-sdk-core/pageable_response.rb

Overview

Raised when calling #next_page on a pager that is on the last page of results. You can call #last_page? or #next_page? to know if there are more pages.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ LastPageError

Returns a new instance of LastPageError.

Parameters:



127
128
129
130
# File 'gems/aws-sdk-core/lib/aws-sdk-core/pageable_response.rb', line 127

def initialize(response)
  @response = response
  super("unable to fetch next page, end of results reached")
end

Instance Attribute Details

#responseSeahorse::Client::Response (readonly)



133
134
135
# File 'gems/aws-sdk-core/lib/aws-sdk-core/pageable_response.rb', line 133

def response
  @response
end