Exception: ScrapCbf::InvalidNumberOfEntitiesError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/scrap_cbf/errors.rb

Overview

Raised when the scraping data is not included in a predefined range.

Instance Method Summary collapse

Constructor Details

#initialize(entity, number) ⇒ InvalidNumberOfEntitiesError

Returns a new instance of InvalidNumberOfEntitiesError.



28
29
30
31
# File 'lib/scrap_cbf/errors.rb', line 28

def initialize(entity, number)
  message = "an invalid number of #{entity} entities was found: #{number}"
  super(message)
end