Exception: SecApi::PaginationError

Inherits:
PermanentError show all
Defined in:
lib/sec_api/errors/pagination_error.rb

Overview

Raised when a pagination operation cannot be completed.

This error is raised when attempting to fetch the next page of results when no more pages are available. It inherits from PermanentError because retrying the operation will not resolve the issue.

Examples:

Handling pagination end

begin
  next_page = filings.fetch_next_page
rescue SecApi::PaginationError => e
  puts "No more pages available"
end

Checking before fetching

if filings.has_more?
  next_page = filings.fetch_next_page
else
  puts "Already on the last page"
end

See Also:

Instance Attribute Summary

Attributes inherited from Error

#request_id

Method Summary

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from SecApi::Error