Exception: Vapir::Exception::TimeOutException

Inherits:
VapirException
  • Object
show all
Defined in:
lib/vapir-common/exceptions.rb

Overview

This exception is raised if a timeout is exceeded

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(duration, timeout) ⇒ TimeOutException

Returns a new instance of TimeOutException.



50
51
52
# File 'lib/vapir-common/exceptions.rb', line 50

def initialize(duration, timeout)
  @duration, @timeout = duration, timeout
end

Instance Attribute Details

#durationObject (readonly)

Returns the value of attribute duration.



53
54
55
# File 'lib/vapir-common/exceptions.rb', line 53

def duration
  @duration
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



53
54
55
# File 'lib/vapir-common/exceptions.rb', line 53

def timeout
  @timeout
end