Exception: SparkleFormation::Error::NotFound

Inherits:
KeyError
  • Object
show all
Defined in:
lib/sparkle_formation/error.rb

Direct Known Subclasses

Component, Dynamic, Registry, Template

Defined Under Namespace

Classes: Component, Dynamic, Registry, Template

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ NotFound

Returns a new instance of NotFound.



10
11
12
13
14
15
# File 'lib/sparkle_formation/error.rb', line 10

def initialize(*args)
  opts = args.detect{|o| o.is_a?(Hash)}
  args.delete(opts) if opts
  super(args)
  @name = opts[:name] if opts
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/sparkle_formation/error.rb', line 8

def name
  @name
end