Exception: Archaeo::FetchError

Inherits:
Error
  • Object
show all
Defined in:
lib/archaeo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status_code:, url:, page:) ⇒ FetchError

Returns a new instance of FetchError.



22
23
24
25
26
27
# File 'lib/archaeo.rb', line 22

def initialize(message, status_code:, url:, page:)
  super(message)
  @status_code = status_code
  @url = url
  @page = page
end

Instance Attribute Details

#pageObject (readonly)

Returns the value of attribute page.



20
21
22
# File 'lib/archaeo.rb', line 20

def page
  @page
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



20
21
22
# File 'lib/archaeo.rb', line 20

def status_code
  @status_code
end

#urlObject (readonly)

Returns the value of attribute url.



20
21
22
# File 'lib/archaeo.rb', line 20

def url
  @url
end