Exception: WebFetch::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/web_fetch/errors.rb

Direct Known Subclasses

ClientError, RequestNotFoundError

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorObject (readonly)

Returns the value of attribute error.



5
6
7
# File 'lib/web_fetch/errors.rb', line 5

def error
  @error
end