Exception: SoberSwag::Reporting::Report::Error
- Inherits:
-
StandardError
- Object
- StandardError
- SoberSwag::Reporting::Report::Error
- Defined in:
- lib/sober_swag/reporting/report/error.rb
Overview
Exception thrown when used with Input::Interface#call!.
Instance Attribute Summary collapse
-
#report ⇒ Object
readonly
Returns the value of attribute report.
Instance Method Summary collapse
-
#initialize(report) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
Constructor Details
#initialize(report) ⇒ Error
Returns a new instance of Error.
7 8 9 |
# File 'lib/sober_swag/reporting/report/error.rb', line 7 def initialize(report) @report = report end |
Instance Attribute Details
#report ⇒ Object (readonly)
Returns the value of attribute report.
15 16 17 |
# File 'lib/sober_swag/reporting/report/error.rb', line 15 def report @report end |
Instance Method Details
#message ⇒ Object
11 12 13 |
# File 'lib/sober_swag/reporting/report/error.rb', line 11 def "Reported errors: #{report.full_errors.join(', ')}" end |