Class: Errbit::DeliveryError
Overview
Raised when the exception could not be delivered at all (network failure, timeout, connection refused, ...). A well-formed HTTP error response from the server (4xx/5xx) is not raised as this error; it is surfaced via a failed Result instead.
Instance Attribute Summary collapse
-
#cause_error ⇒ Object
readonly
Returns the value of attribute cause_error.
Instance Method Summary collapse
-
#initialize(cause_error) ⇒ DeliveryError
constructor
A new instance of DeliveryError.
Constructor Details
#initialize(cause_error) ⇒ DeliveryError
14 15 16 17 |
# File 'lib/errbit/errors.rb', line 14 def initialize(cause_error) @cause_error = cause_error super("Failed to deliver error report: #{cause_error.class}: #{cause_error.}") end |
Instance Attribute Details
#cause_error ⇒ Object (readonly)
Returns the value of attribute cause_error.
12 13 14 |
# File 'lib/errbit/errors.rb', line 12 def cause_error @cause_error end |