Exception: Dependabot::SharedHelpers::ChildProcessFailed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dependabot/shared_helpers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_message
  @error_backtrace = error_backtrace

  msg = "Child process raised #{error_class} with message: "\
        "#{error_message}"
  super(msg)
  set_backtrace(error_backtrace)
end

Instance Attribute Details

#error_backtraceObject (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_classObject (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_messageObject (readonly)

Returns the value of attribute error_message.



18
19
20
# File 'lib/dependabot/shared_helpers.rb', line 18

def error_message
  @error_message
end