Exception: Subroutine::Failure
- Inherits:
-
StandardError
- Object
- StandardError
- Subroutine::Failure
- Defined in:
- lib/subroutine/failure.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record) ⇒ Failure
constructor
A new instance of Failure.
Constructor Details
#initialize(record) ⇒ Failure
Returns a new instance of Failure.
6 7 8 9 10 |
# File 'lib/subroutine/failure.rb', line 6 def initialize(record) @record = record errors = @record.errors..join(', ') super(errors) end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
5 6 7 |
# File 'lib/subroutine/failure.rb', line 5 def record @record end |