Exception: ScrapCbf::RowSizeError

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

Overview

Raised when the scraping data from a table have the size of the Table’s header different than the Table’s rows.

Instance Method Summary collapse

Constructor Details

#initialize(row_length, header_length) ⇒ RowSizeError

Returns a new instance of RowSizeError.



37
38
39
40
41
# File 'lib/scrap_cbf/errors.rb', line 37

def initialize(row_length, header_length)
  message = "row length: #{row_length} doesn't match with " \
  "header length: #{header_length}"
  super(message)
end