Exception: Caixanegra::UnitScopedException
- Inherits:
-
StandardError
- Object
- StandardError
- Caixanegra::UnitScopedException
- Defined in:
- lib/caixanegra/exceptions.rb
Instance Attribute Summary collapse
-
#unit ⇒ Object
readonly
Returns the value of attribute unit.
Instance Method Summary collapse
-
#initialize(exception, unit) ⇒ UnitScopedException
constructor
A new instance of UnitScopedException.
Constructor Details
#initialize(exception, unit) ⇒ UnitScopedException
Returns a new instance of UnitScopedException.
7 8 9 10 |
# File 'lib/caixanegra/exceptions.rb', line 7 def initialize(exception, unit) @unit = unit super(exception.) end |
Instance Attribute Details
#unit ⇒ Object (readonly)
Returns the value of attribute unit.
5 6 7 |
# File 'lib/caixanegra/exceptions.rb', line 5 def unit @unit end |