Class: Phronomy::Agent::AgentExecutionActivation::ApplicationCallbackFailure
- Inherits:
-
Data
- Object
- Data
- Phronomy::Agent::AgentExecutionActivation::ApplicationCallbackFailure
- Defined in:
- lib/phronomy/agent/agent_execution_activation.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#event_type ⇒ Object
readonly
Returns the value of attribute event_type.
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error
107 108 109 |
# File 'lib/phronomy/agent/agent_execution_activation.rb', line 107 def error @error end |
#event_type ⇒ Object (readonly)
Returns the value of attribute 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_error ⇒ Object
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 |