Exception: AcidicJob::DefinitionMismatchError

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

Instance Method Summary collapse

Constructor Details

#initialize(expected, existing) ⇒ DefinitionMismatchError

Returns a new instance of DefinitionMismatchError.



48
49
50
51
52
# File 'lib/acidic_job/errors.rb', line 48

def initialize(expected, existing)
  super
  @expected = expected
  @existing = existing
end

Instance Method Details

#messageObject



54
55
56
57
58
59
60
# File 'lib/acidic_job/errors.rb', line 54

def message
  <<~TXT
    existing execution's definition does not match
      existing: #{@existing.inspect}
      expected: #{@expected.inspect}
  TXT
end