Class: Errbit::DeliveryError

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

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

Instance Method Summary collapse

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.message}")
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