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


69
70
71
72
73
# File 'lib/camunda.rb', line 69

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)


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

def error_code
  @error_code
end

#variablesHash (readonly)

variables to send to Camunda along with the error

Returns:

  • (Hash)


64
65
66
# File 'lib/camunda.rb', line 64

def variables
  @variables
end