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.



27
28
29
30
31
32
33
34
35
36
# File 'lib/dependabot/shared_helpers.rb', line 27

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.



25
26
27
# File 'lib/dependabot/shared_helpers.rb', line 25

def error_backtrace
  @error_backtrace
end

#error_classObject (readonly)

Returns the value of attribute error_class.



25
26
27
# File 'lib/dependabot/shared_helpers.rb', line 25

def error_class
  @error_class
end

#error_messageObject (readonly)

Returns the value of attribute error_message.



25
26
27
# File 'lib/dependabot/shared_helpers.rb', line 25

def error_message
  @error_message
end