Exception: Temporalio::Error::TimeoutError

Inherits:
Failure show all
Defined in:
lib/temporalio/error/failure.rb

Overview

Error raised on workflow/activity timeout.

Instance Attribute Summary collapse

Attributes inherited from Failure

#raw

Instance Method Summary collapse

Methods inherited from Failure

#cause

Constructor Details

#initialize(message, type:, last_heartbeat_details: [], raw: nil, cause: nil) ⇒ TimeoutError

Returns a new instance of TimeoutError.



55
56
57
58
59
60
# File 'lib/temporalio/error/failure.rb', line 55

def initialize(message, type:, last_heartbeat_details: [], raw: nil, cause: nil)
  super(message, raw: raw, cause: cause)

  @type = type
  @last_heartbeat_details = last_heartbeat_details
end

Instance Attribute Details

#last_heartbeat_detailsArray<any> (readonly)

Returns Last heartbeat details if this is for an activity heartbeat.

Returns:

  • (Array<any>)

    Last heartbeat details if this is for an activity heartbeat.



53
54
55
# File 'lib/temporalio/error/failure.rb', line 53

def last_heartbeat_details
  @last_heartbeat_details
end

#typeSymbol (readonly)

Returns Type of timeout error. Refer to TimeoutType.

Returns:

  • (Symbol)

    Type of timeout error. Refer to TimeoutType.



50
51
52
# File 'lib/temporalio/error/failure.rb', line 50

def type
  @type
end