Exception: Hungrytable::EnhancedErrors::EnhancedHTTPError

Inherits:
HTTPError show all
Defined in:
lib/hungrytable/enhanced_errors.rb

Overview

Enhance HTTPError with retry suggestions

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, retryable: false) ⇒ EnhancedHTTPError



97
98
99
100
101
# File 'lib/hungrytable/enhanced_errors.rb', line 97

def initialize(message, retryable: false)
  @retryable = retryable
  @diagnostics = build_diagnostics
  super(build_message(message))
end

Instance Attribute Details

#diagnosticsObject (readonly)

Returns the value of attribute diagnostics.



95
96
97
# File 'lib/hungrytable/enhanced_errors.rb', line 95

def diagnostics
  @diagnostics
end

#retryableObject (readonly)

Returns the value of attribute retryable.



95
96
97
# File 'lib/hungrytable/enhanced_errors.rb', line 95

def retryable
  @retryable
end