Exception: MonkeyBars::PatchConstantNotFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- MonkeyBars::PatchConstantNotFoundError
- Defined in:
- lib/monkey_bars/errors.rb
Instance Method Summary collapse
-
#initialize(patcher_name, monkey: nil, constant: nil) ⇒ PatchConstantNotFoundError
constructor
A new instance of PatchConstantNotFoundError.
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 |