Exception: Ghaki::PluginLoadingError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/ghaki/registry/errors.rb

Overview


Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_feature, _plugin, _lib_path, _reason) ⇒ PluginLoadingError

Returns a new instance of PluginLoadingError.



49
50
51
52
53
54
55
56
# File 'lib/ghaki/registry/errors.rb', line 49

def initialize _feature, _plugin, _lib_path, _reason
  @feature  = _feature
  @plugin   = _plugin
  @lib_path = _lib_path
  @reason   = _reason
  msg ||= 'Plugin Loading Error: ' + @reason.to_s
  super(msg)
end

Instance Attribute Details

#featureObject

Returns the value of attribute feature.



48
49
50
# File 'lib/ghaki/registry/errors.rb', line 48

def feature
  @feature
end

#lib_pathObject

Returns the value of attribute lib_path.



48
49
50
# File 'lib/ghaki/registry/errors.rb', line 48

def lib_path
  @lib_path
end

#pluginObject

Returns the value of attribute plugin.



48
49
50
# File 'lib/ghaki/registry/errors.rb', line 48

def plugin
  @plugin
end

#reasonObject

Returns the value of attribute reason.



48
49
50
# File 'lib/ghaki/registry/errors.rb', line 48

def reason
  @reason
end