Exception: Decouplio::Errors::ActionClassError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/decouplio/errors/action_class_error.rb

Instance Method Summary collapse

Methods inherited from BaseError

#message

Constructor Details

#initialize(step_type:, errored_option:) ⇒ ActionClassError

Returns a new instance of ActionClassError.



9
10
11
12
# File 'lib/decouplio/errors/action_class_error.rb', line 9

def initialize(step_type:, errored_option:)
  super(errored_option: errored_option)
  @step_type = step_type
end

Instance Method Details

#interpolation_valuesObject



18
19
20
21
22
23
# File 'lib/decouplio/errors/action_class_error.rb', line 18

def interpolation_values
  [
    @step_type,
    @errored_option
  ]
end

#templateObject



14
15
16
# File 'lib/decouplio/errors/action_class_error.rb', line 14

def template
  Decouplio::Const::Validations::ActionOptionClass::VALIDATION_ERROR_MESSAGE
end