Exception: Uinit::Structure::AttributeError
- Inherits:
-
StandardError
- Object
- StandardError
- Uinit::Structure::AttributeError
- Defined in:
- lib/uinit/structure/attribute_error.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
Instance Method Summary collapse
-
#initialize(attribute, msg) ⇒ AttributeError
constructor
A new instance of AttributeError.
- #message ⇒ Object
Constructor Details
#initialize(attribute, msg) ⇒ AttributeError
Returns a new instance of AttributeError.
6 7 8 9 10 |
# File 'lib/uinit/structure/attribute_error.rb', line 6 def initialize(attribute, msg) super(msg) @attribute = attribute end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
12 13 14 |
# File 'lib/uinit/structure/attribute_error.rb', line 12 def attribute @attribute end |
Instance Method Details
#message ⇒ Object
14 15 16 |
# File 'lib/uinit/structure/attribute_error.rb', line 14 def "Error on attribute '#{attribute.name}', detail:\n#{super}" end |