Exception: Svelte::HTTPError
- Inherits:
-
StandardError
- Object
- StandardError
- Svelte::HTTPError
- Defined in:
- lib/svelte/errors/http_error.rb
Overview
Svelte error class to represent networking errors It can be customized by passing a specific errror message and a parent exception, which will contain the http driver specific error that generated it
Instance Attribute Summary collapse
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(message: nil, parent: nil) ⇒ HTTPError
constructor
Creates a new HTTPError with a message and a parent error.
Constructor Details
#initialize(message: nil, parent: nil) ⇒ HTTPError
Creates a new HTTPError with a message and a parent error
14 15 16 17 |
# File 'lib/svelte/errors/http_error.rb', line 14 def initialize(message: nil, parent: nil) @parent = parent super( || (parent&.)) end |
Instance Attribute Details
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
9 10 11 |
# File 'lib/svelte/errors/http_error.rb', line 9 def parent @parent end |