Exception: Para::ComponentNotFound

Inherits:
BaseException show all
Defined in:
lib/para/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ ComponentNotFound

Returns a new instance of ComponentNotFound.



7
8
9
# File 'lib/para/errors.rb', line 7

def initialize(type)
  @type = type
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



5
6
7
# File 'lib/para/errors.rb', line 5

def type
  @type
end

Instance Method Details

#messageObject



11
12
13
# File 'lib/para/errors.rb', line 11

def message
  "Component not found for type : #{ type }"
end