Exception: ConvenientService::Support::NeverReachHere

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/support/never_reach_here.rb

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(extra_message:) ⇒ void

This method returns an undefined value.

Parameters:

  • extra_message (String)


10
11
12
13
14
15
16
17
18
# File 'lib/convenient_service/support/never_reach_here.rb', line 10

def initialize_with_kwargs(extra_message:)
  message = <<~TEXT
    The code that was supposed to be unreachable was executed.

    #{extra_message}
  TEXT

  initialize(message)
end