Exception: Camunda::BpmnError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/camunda.rb

Overview

Error when BPMN process cannot be deployed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message:, error_code:, variables: {}) ⇒ BpmnError

Returns a new instance of BpmnError.

Parameters:

  • message (String)
  • error_code (String)
  • variables (Hash) (defaults to: {})


67
68
69
70
71
# File 'lib/camunda.rb', line 67

def initialize(message:, error_code:, variables: {})
  super(message)
  @error_code = error_code
  @variables = variables
end

Instance Attribute Details

#error_codeString (readonly)

Camunda BPMN error code

Returns:

  • (String)


59
60
61
# File 'lib/camunda.rb', line 59

def error_code
  @error_code
end

#variablesHash (readonly)

variables to send to Camunda along with the error

Returns:

  • (Hash)


62
63
64
# File 'lib/camunda.rb', line 62

def variables
  @variables
end