Exception: Aws::PageableResponse::LastPageError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Aws::PageableResponse::LastPageError
- Defined in:
- 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
-
#initialize(response) ⇒ LastPageError
constructor
A new instance of LastPageError.
Constructor Details
#initialize(response) ⇒ LastPageError
Returns a new instance of LastPageError.
129 130 131 132 |
# File 'lib/aws-sdk-core/pageable_response.rb', line 129 def initialize(response) @response = response super("unable to fetch next page, end of results reached") end |
Instance Attribute Details
#response ⇒ Seahorse::Client::Response (readonly)
135 136 137 |
# File 'lib/aws-sdk-core/pageable_response.rb', line 135 def response @response end |