Exception: Plz::LinkNotFound

Inherits:
InvalidSchema show all
Defined in:
lib/plz/error.rb

Constant Summary

Constants inherited from Error

Error::USAGE

Instance Method Summary collapse

Constructor Details

#initialize(action_name: action_name, target_name: target_name, **args) ⇒ LinkNotFound

Returns a new instance of LinkNotFound.



59
60
61
62
63
# File 'lib/plz/error.rb', line 59

def initialize(action_name: action_name, target_name: target_name, **args)
  super(**args)
  @action_name = action_name
  @target_name = target_name
end

Instance Method Details

#to_sObject



65
66
67
# File 'lib/plz/error.rb', line 65

def to_s
  "#{@pathname} has no definition for `#{@action_name} #{@target_name}`"
end