Exception: SoberSwag::Reporting::Report::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sober_swag/reporting/report/error.rb

Overview

Exception thrown when used with Input::Interface#call!.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#reportObject (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

#messageObject



11
12
13
# File 'lib/sober_swag/reporting/report/error.rb', line 11

def message
  "Reported errors: #{report.full_errors.join(', ')}"
end