Exception: ChupaText::TimeoutError

Inherits:
Error
  • Object
show all
Defined in:
lib/chupa-text/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.



58
59
60
# File 'lib/chupa-text/error.rb', line 58

def data
  @data
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



58
59
60
# File 'lib/chupa-text/error.rb', line 58

def timeout
  @timeout
end