Exception: MonkeyBars::PatchConstantNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/monkey_bars/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(patcher_name, monkey: nil, constant: nil) ⇒ PatchConstantNotFoundError

Returns a new instance of PatchConstantNotFoundError.



119
120
121
# File 'lib/monkey_bars/errors.rb', line 119

def initialize(patcher_name, monkey: nil, constant: nil)
  super("[#{patcher_name}] Couldn't find constant `#{constant}` on `#{monkey}` despite it being marked as patchable. Perhaps move it to the `new_constants` block?")
end