Exception: Subroutine::Outputs::InvalidOutputTypeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/subroutine/outputs/invalid_output_type_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(name:, expected_type:, actual_type:) ⇒ InvalidOutputTypeError

Returns a new instance of InvalidOutputTypeError.



7
8
9
# File 'lib/subroutine/outputs/invalid_output_type_error.rb', line 7

def initialize(name:, expected_type:, actual_type:)
  super("Invalid output type for '#{name}' expected #{expected_type} but got #{actual_type}")
end