Exception: Ghaki::FeatureNotFoundError

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, msg = nil) ⇒ FeatureNotFoundError

Returns a new instance of FeatureNotFoundError.



17
18
19
20
21
# File 'lib/ghaki/registry/errors.rb', line 17

def initialize _feature, msg=nil
  @feature = _feature
   msg ||= 'Feature Not Registered: ' + @feature.to_s
  super(msg)
end

Instance Attribute Details

#featureObject

Returns the value of attribute feature.



16
17
18
# File 'lib/ghaki/registry/errors.rb', line 16

def feature
  @feature
end