Exception: Temporalio::Error::TimeoutError
- Inherits:
-
Failure
- Object
- StandardError
- Temporalio::Error
- Failure
- Temporalio::Error::TimeoutError
- Defined in:
- lib/temporalio/error/failure.rb
Overview
Error raised on workflow/activity timeout.
Instance Attribute Summary collapse
-
#last_heartbeat_details ⇒ Array<any>
readonly
Last heartbeat details if this is for an activity heartbeat.
-
#type ⇒ Symbol
readonly
Type of timeout error.
Attributes inherited from Failure
Instance Method Summary collapse
-
#initialize(message, type:, last_heartbeat_details: [], raw: nil, cause: nil) ⇒ TimeoutError
constructor
A new instance of TimeoutError.
Methods inherited from Failure
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(, type:, last_heartbeat_details: [], raw: nil, cause: nil) super(, raw: raw, cause: cause) @type = type @last_heartbeat_details = last_heartbeat_details end |
Instance Attribute Details
#last_heartbeat_details ⇒ Array<any> (readonly)
Returns 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 |
#type ⇒ Symbol (readonly)
Returns Type of timeout error. Refer to TimeoutType.
50 51 52 |
# File 'lib/temporalio/error/failure.rb', line 50 def type @type end |