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

Parameters:

  • value —

    the value to set the attribute canceled to.



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

def canceled=(value)
  @canceled = value
end

#description ⇒ Object

Returns the value of attribute description.



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

def description
  @description
end

#error_text ⇒ Object

Returns the value of attribute error_text.



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

def error_text
  @error_text
end

#id ⇒ Object

Returns the value of attribute id.



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

def id
  @id
end

#monotonic_time ⇒ Object

Returns the value of attribute monotonic_time.



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

def monotonic_time
  @monotonic_time
end

#time ⇒ Object (readonly)

Returns the value of attribute time.



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

def time
  @time
end

#timestamp ⇒ Object

Returns the value of attribute timestamp.



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

def timestamp
  @timestamp
end

#type ⇒ Object

Returns the value of attribute type.



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

def type
  @type
end

#url ⇒ Object

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.

Returns:

  • (Boolean)


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

def canceled?
  @canceled
end