Class: Ferrum::Network::Error
- Inherits:
-
Object
- Object
- Ferrum::Network::Error
- 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
-
#canceled ⇒ Object
writeonly
Sets the attribute canceled.
-
#description ⇒ Object
Returns the value of attribute description.
-
#error_text ⇒ Object
Returns the value of attribute error_text.
-
#id ⇒ Object
Returns the value of attribute id.
-
#monotonic_time ⇒ Object
Returns the value of attribute monotonic_time.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#type ⇒ Object
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#canceled? ⇒ Boolean
Whether the request was canceled.
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 |
#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 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.
18 19 20 |
# File 'lib/ferrum/network/error.rb', line 18 def canceled? @canceled end |