Exception: Dependabot::SharedHelpers::HelperSubprocessFailed

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of HelperSubprocessFailed.



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

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

Instance Attribute Details

#error_classObject (readonly)

Returns the value of attribute error_class.



61
62
63
# File 'lib/dependabot/shared_helpers.rb', line 61

def error_class
  @error_class
end

#error_contextObject (readonly)

Returns the value of attribute error_context.



61
62
63
# File 'lib/dependabot/shared_helpers.rb', line 61

def error_context
  @error_context
end

Instance Method Details

#raven_contextObject



70
71
72
# File 'lib/dependabot/shared_helpers.rb', line 70

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