Exception: ActionOperation::Error::StepSchemaMismatch

Inherits:
ActionOperation::Error show all
Defined in:
lib/action_operation/error/step_schema_mismatch.rb

Instance Method Summary collapse

Constructor Details

#initialize(step:, schema:, raw:) ⇒ StepSchemaMismatch

Returns a new instance of StepSchemaMismatch.



4
5
6
7
8
# File 'lib/action_operation/error/step_schema_mismatch.rb', line 4

def initialize(step:, schema:, raw:)
  @step = step
  @schema = schema
  @raw = raw
end

Instance Method Details

#messageObject



10
11
12
# File 'lib/action_operation/error/step_schema_mismatch.rb', line 10

def message
  "#{@step.receiver}##{@step.name} #{cause.message} and received #{@raw}"
end