Exception: WebFetch::Error
- Inherits:
-
StandardError
- Object
- StandardError
- WebFetch::Error
- Defined in:
- lib/web_fetch/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(error) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(error) ⇒ Error
Returns a new instance of Error.
7 8 9 10 |
# File 'lib/web_fetch/errors.rb', line 7 def initialize(error) super @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
5 6 7 |
# File 'lib/web_fetch/errors.rb', line 5 def error @error end |