Method: Temporalio::Error::ApplicationError#initialize

Defined in:
lib/temporalio/error/failure.rb

#initialize(message, *details, type: nil, non_retryable: false, next_retry_delay: nil, category: Category::UNSPECIFIED) ⇒ ApplicationError

Create an application error.

Parameters:

  • message (String)

    Error message.

  • details (Array<Object, nil>)

    Error details.

  • type (String, nil) (defaults to: nil)

    Error type.

  • non_retryable (Boolean) (defaults to: false)

    Whether this error should be considered non-retryable.

  • next_retry_delay (Float, nil) (defaults to: nil)

    Specific amount of time to delay before next retry.

  • category (Category) (defaults to: Category::UNSPECIFIED)

    Error category.



60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/temporalio/error/failure.rb', line 60

def initialize(
  message,
  *details,
  type: nil,
  non_retryable: false,
  next_retry_delay: nil,
  category: Category::UNSPECIFIED
)
  super(message)
  @details = details
  @type = type
  @non_retryable = non_retryable
  @next_retry_delay = next_retry_delay
  @category = category
end