Class: LogStash::ConvergeResult::FailedAction
- Inherits:
-
ActionResult
- Object
- ActionResult
- LogStash::ConvergeResult::FailedAction
- Defined in:
- lib/logstash/converge_result.rb
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
readonly
Returns the value of attribute backtrace.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Attributes inherited from ActionResult
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(message, backtrace = nil) ⇒ FailedAction
constructor
A new instance of FailedAction.
- #successful? ⇒ Boolean
Methods inherited from ActionResult
Constructor Details
#initialize(message, backtrace = nil) ⇒ FailedAction
Returns a new instance of FailedAction.
35 36 37 38 39 40 |
# File 'lib/logstash/converge_result.rb', line 35 def initialize(, backtrace = nil) super() @message = @backtrace = backtrace end |
Instance Attribute Details
#backtrace ⇒ Object (readonly)
Returns the value of attribute backtrace.
33 34 35 |
# File 'lib/logstash/converge_result.rb', line 33 def backtrace @backtrace end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
33 34 35 |
# File 'lib/logstash/converge_result.rb', line 33 def @message end |
Class Method Details
.from_action(action, action_result) ⇒ Object
46 47 48 |
# File 'lib/logstash/converge_result.rb', line 46 def self.from_action(action, action_result) FailedAction.new("Could not execute action: #{action}, action_result: #{action_result}") end |
.from_exception(exception) ⇒ Object
42 43 44 |
# File 'lib/logstash/converge_result.rb', line 42 def self.from_exception(exception) FailedAction.new(exception., exception.backtrace) end |
Instance Method Details
#successful? ⇒ Boolean
50 51 52 |
# File 'lib/logstash/converge_result.rb', line 50 def successful? false end |