Exception: Dependabot::SharedHelpers::HelperSubprocessFailed

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

Constant Summary

Constants inherited from DependabotError

DependabotError::BASIC_AUTH_REGEX, DependabotError::FURY_IO_PATH_REGEX

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message:, error_context:, error_class: nil, trace: nil) ⇒ HelperSubprocessFailed

Returns a new instance of HelperSubprocessFailed.



58
59
60
61
62
63
64
# File 'lib/dependabot/shared_helpers.rb', line 58

def initialize(message:, error_context:, error_class: nil, trace: nil)
  super(message)
  @error_class = error_class || ""
  @error_context = error_context
  @command = error_context[:command]
  @trace = trace
end

Instance Attribute Details

#error_classObject (readonly)

Returns the value of attribute error_class.



56
57
58
# File 'lib/dependabot/shared_helpers.rb', line 56

def error_class
  @error_class
end

#error_contextObject (readonly)

Returns the value of attribute error_context.



56
57
58
# File 'lib/dependabot/shared_helpers.rb', line 56

def error_context
  @error_context
end

#traceObject (readonly)

Returns the value of attribute trace.



56
57
58
# File 'lib/dependabot/shared_helpers.rb', line 56

def trace
  @trace
end

Instance Method Details

#raven_contextObject



66
67
68
# File 'lib/dependabot/shared_helpers.rb', line 66

def raven_context
  { fingerprint: [@command], extra: @error_context }
end