Exception: ConvenientService::Support::NeverReachHere Private

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(extra_message:) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Parameters:

  • extra_message (String)

Since:

  • 1.0.0



15
16
17
18
19
20
21
22
23
# File 'lib/convenient_service/support/never_reach_here.rb', line 15

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

    #{extra_message}
  TEXT

  initialize(message)
end