Exception: Html2rss::NoFeedItemsExtracted

Inherits:
Error
  • Object
show all
Defined in:
lib/html2rss/error.rb

Overview

Raised when auto fallback exhausts all concrete tiers and extractors find no feed items.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attempts:) ⇒ NoFeedItemsExtracted

Returns a new instance of NoFeedItemsExtracted.

Parameters:

  • attempts (Array<Hash{Symbol => Object}>)

    tier attempt diagnostics



11
12
13
14
# File 'lib/html2rss/error.rb', line 11

def initialize(attempts:)
  @attempts = attempts
  super(build_message)
end

Instance Attribute Details

#attemptsArray<Hash{Symbol => Object}> (readonly)

Returns tier attempt diagnostics.

Returns:

  • (Array<Hash{Symbol => Object}>)

    tier attempt diagnostics



17
18
19
# File 'lib/html2rss/error.rb', line 17

def attempts
  @attempts
end