Exception: Tabled::FormatError
- Inherits:
-
StandardError
- Object
- StandardError
- Tabled::FormatError
- Defined in:
- lib/errors/format_error.rb
Overview
Custom errors for the gem
Instance Method Summary collapse
-
#initialize(received_format:) ⇒ FormatError
constructor
rubocop:disable Style/ClassAndModuleChildren.
- #message ⇒ Object
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
#message ⇒ Object
10 11 12 |
# File 'lib/errors/format_error.rb', line 10 def "Expected to receive CSV but received #{@received_format}" end |