Exception: Charyf::Application::Bootstrap::SkillLoadError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/charyf/utils/application/bootstrap.rb

Instance Method Summary collapse

Constructor Details

#initialize(e, skill_name, skill_path) ⇒ SkillLoadError

Returns a new instance of SkillLoadError.



12
13
14
15
16
17
# File 'lib/charyf/utils/application/bootstrap.rb', line 12

def initialize(e, skill_name, skill_path)
  super(e)

  @_name = skill_name
  @_path = skill_path.dirname
end

Instance Method Details

#_messageObject



23
24
25
26
27
28
29
30
31
# File 'lib/charyf/utils/application/bootstrap.rb', line 23

def _message
  <<-EOS
  
  Unable to load skill #{@_name}
  Expected to find: '#{@_name}.rb'
        Located at: '#{@_path}'

EOS
end

#messageObject



19
20
21
# File 'lib/charyf/utils/application/bootstrap.rb', line 19

def message
  _message + super
end