Exception: Temporalio::Error::CancelledError

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

Overview

Error raised on workflow/activity cancellation.

Instance Attribute Summary collapse

Attributes inherited from Failure

#raw

Instance Method Summary collapse

Methods inherited from Failure

#cause

Constructor Details

#initialize(message, details: [], raw: nil, cause: nil) ⇒ CancelledError

Returns a new instance of CancelledError.



68
69
70
71
72
# File 'lib/temporalio/error/failure.rb', line 68

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

  @details = details
end

Instance Attribute Details

#detailsArray<any> (readonly)

Returns User-defined details on the error.

Returns:

  • (Array<any>)

    User-defined details on the error.



66
67
68
# File 'lib/temporalio/error/failure.rb', line 66

def details
  @details
end