Exception: Tabled::FormatError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/errors/format_error.rb

Overview

Custom errors for the gem

Instance Method Summary collapse

Constructor Details

#initialize(received_format:) ⇒ FormatError

rubocop:disable Style/ClassAndModuleChildren



5
6
7
8
# File 'lib/errors/format_error.rb', line 5

def initialize(received_format:)
  @received_format = received_format
  super
end

Instance Method Details

#messageObject



10
11
12
# File 'lib/errors/format_error.rb', line 10

def message
  "Expected to receive CSV but received #{@received_format}"
end