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: {})


119
120
121
122
123
# File 'lib/camunda.rb', line 119

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)


111
112
113
# File 'lib/camunda.rb', line 111

def error_code
  @error_code
end

#variablesHash (readonly)

variables to send to Camunda along with the error

Returns:

  • (Hash)


114
115
116
# File 'lib/camunda.rb', line 114

def variables
  @variables
end