Exception: Hungrytable::EnhancedErrors::EnhancedHTTPError
- Inherits:
-
HTTPError
- Object
- StandardError
- Hungrytable::Error
- HTTPError
- Hungrytable::EnhancedErrors::EnhancedHTTPError
- Defined in:
- lib/hungrytable/enhanced_errors.rb
Overview
Enhance HTTPError with retry suggestions
Instance Attribute Summary collapse
-
#diagnostics ⇒ Object
readonly
Returns the value of attribute diagnostics.
-
#retryable ⇒ Object
readonly
Returns the value of attribute retryable.
Instance Method Summary collapse
-
#initialize(message, retryable: false) ⇒ EnhancedHTTPError
constructor
A new instance of EnhancedHTTPError.
Constructor Details
#initialize(message, retryable: false) ⇒ EnhancedHTTPError
97 98 99 100 101 |
# File 'lib/hungrytable/enhanced_errors.rb', line 97 def initialize(, retryable: false) @retryable = retryable @diagnostics = build_diagnostics super(()) end |
Instance Attribute Details
#diagnostics ⇒ Object (readonly)
Returns the value of attribute diagnostics.
95 96 97 |
# File 'lib/hungrytable/enhanced_errors.rb', line 95 def diagnostics @diagnostics end |
#retryable ⇒ Object (readonly)
Returns the value of attribute retryable.
95 96 97 |
# File 'lib/hungrytable/enhanced_errors.rb', line 95 def retryable @retryable end |