Exception: ChupaText::TimeoutError
- Defined in:
- lib/chupa-text/error.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(data, timeout) ⇒ TimeoutError
constructor
A new instance of TimeoutError.
Constructor Details
#initialize(data, timeout) ⇒ TimeoutError
Returns a new instance of TimeoutError.
59 60 61 62 63 |
# File 'lib/chupa-text/error.rb', line 59 def initialize(data, timeout) @data = data @timeout = timeout super("Timeout error: <#{data.uri}>(#{data.mime_type}): <#{timeout}>") end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
58 59 60 |
# File 'lib/chupa-text/error.rb', line 58 def data @data end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
58 59 60 |
# File 'lib/chupa-text/error.rb', line 58 def timeout @timeout end |