Exception: Wiq::ReportFailedError

Inherits:
Error
  • Object
show all
Defined in:
lib/wiq/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#code, #details, #exit_code, #hint

Instance Method Summary collapse

Constructor Details

#initialize(report) ⇒ ReportFailedError

Returns a new instance of ReportFailedError.



133
134
135
136
137
138
139
# File 'lib/wiq/errors.rb', line 133

def initialize(report)
  super(
    "Report ##{report["id"]} (#{report["type"]}) finished with status `failed`.",
    code: "report_failed",
    details: report["result"]
  )
end