Exception: Dependabot::SharedHelpers::ChildProcessFailed
- Inherits:
-
StandardError
- Object
- StandardError
- Dependabot::SharedHelpers::ChildProcessFailed
- Defined in:
- lib/dependabot/shared_helpers.rb
Instance Attribute Summary collapse
-
#error_backtrace ⇒ Object
readonly
Returns the value of attribute error_backtrace.
-
#error_class ⇒ Object
readonly
Returns the value of attribute error_class.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
Instance Method Summary collapse
-
#initialize(error_class:, error_message:, error_backtrace:) ⇒ ChildProcessFailed
constructor
A new instance of ChildProcessFailed.
Constructor Details
#initialize(error_class:, error_message:, error_backtrace:) ⇒ ChildProcessFailed
Returns a new instance of ChildProcessFailed.
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/dependabot/shared_helpers.rb', line 20 def initialize(error_class:, error_message:, error_backtrace:) @error_class = error_class @error_message = @error_backtrace = error_backtrace msg = "Child process raised #{error_class} with message: "\ "#{}" super(msg) set_backtrace(error_backtrace) end |
Instance Attribute Details
#error_backtrace ⇒ Object (readonly)
Returns the value of attribute error_backtrace.
18 19 20 |
# File 'lib/dependabot/shared_helpers.rb', line 18 def error_backtrace @error_backtrace end |
#error_class ⇒ Object (readonly)
Returns the value of attribute error_class.
18 19 20 |
# File 'lib/dependabot/shared_helpers.rb', line 18 def error_class @error_class end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
18 19 20 |
# File 'lib/dependabot/shared_helpers.rb', line 18 def @error_message end |