Class: TableSync::EventError

Inherits:
Error
  • Object
show all
Defined in:
lib/table_sync/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(event) ⇒ EventError

Returns a new instance of EventError.



10
11
12
13
14
15
# File 'lib/table_sync/errors.rb', line 10

def initialize(event)
  super(<<~MSG.squish)
    Event #{event.inspect} is invalid.#{' '}
    Expected: #{TableSync::Event::VALID_RAW_EVENTS.inspect}.
  MSG
end