Class: Phronomy::Agent::AgentExecutionActivation::ApplicationCallbackFailure

Inherits:
Data
  • Object
show all
Defined in:
lib/phronomy/agent/agent_execution_activation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



107
108
109
# File 'lib/phronomy/agent/agent_execution_activation.rb', line 107

def error
  @error
end

#event_typeObject (readonly)

Returns the value of attribute event_type

Returns:

  • (Object)

    the current value of event_type



107
108
109
# File 'lib/phronomy/agent/agent_execution_activation.rb', line 107

def event_type
  @event_type
end

Instance Method Details

#to_stream_callback_errorObject



108
109
110
111
112
113
114
115
116
117
118
# File 'lib/phronomy/agent/agent_execution_activation.rb', line 108

def to_stream_callback_error
  wrapped = Phronomy::StreamCallbackError.new(
    event_type: event_type, original_error: error, result: nil
  )
  begin
    raise wrapped, cause: error
  rescue Phronomy::StreamCallbackError => caught
    caught.set_backtrace(error.backtrace)
    caught
  end
end