Exception: Temporalio::Error::ActivityCancelled

Inherits:
Internal show all
Defined in:
lib/temporalio/errors.rb

Overview

This error is used within the SDK to communicate Activity cancellations (and whether it was requested by server or not)

Instance Method Summary collapse

Constructor Details

#initialize(reason, by_request) ⇒ ActivityCancelled

Returns a new instance of ActivityCancelled.



30
31
32
33
# File 'lib/temporalio/errors.rb', line 30

def initialize(reason, by_request)
  super(reason)
  @by_request = by_request
end

Instance Method Details

#by_request?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/temporalio/errors.rb', line 35

def by_request?
  @by_request
end