Class: Ferrum::Network::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/ferrum/network/error.rb

Overview

Represents a network-level loading error reported for a request, e.g. via Network.loadingFailed. Distinct from the Ruby exceptions defined in ferrum/errors.rb.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#canceled=(value) ⇒ Object (writeonly)

Sets the attribute canceled



11
12
13
# File 'lib/ferrum/network/error.rb', line 11

def canceled=(value)
  @canceled = value
end

#descriptionObject

Returns the value of attribute description.



13
14
15
# File 'lib/ferrum/network/error.rb', line 13

def description
  @description
end

#error_textObject

Returns the value of attribute error_text.



13
14
15
# File 'lib/ferrum/network/error.rb', line 13

def error_text
  @error_text
end

#idObject

Returns the value of attribute id.



13
14
15
# File 'lib/ferrum/network/error.rb', line 13

def id
  @id
end

#monotonic_timeObject

Returns the value of attribute monotonic_time.



13
14
15
# File 'lib/ferrum/network/error.rb', line 13

def monotonic_time
  @monotonic_time
end

#timeObject (readonly)

Returns the value of attribute time.



12
13
14
# File 'lib/ferrum/network/error.rb', line 12

def time
  @time
end

#timestampObject

Returns the value of attribute timestamp.



12
13
14
# File 'lib/ferrum/network/error.rb', line 12

def timestamp
  @timestamp
end

#typeObject

Returns the value of attribute type.



13
14
15
# File 'lib/ferrum/network/error.rb', line 13

def type
  @type
end

#urlObject

Returns the value of attribute url.



13
14
15
# File 'lib/ferrum/network/error.rb', line 13

def url
  @url
end

Instance Method Details

#canceled?Boolean

Whether the request was canceled.



18
19
20
# File 'lib/ferrum/network/error.rb', line 18

def canceled?
  @canceled
end