Exception: Dependabot::SharedHelpers::HelperSubprocessFailed
- Inherits:
-
StandardError
- Object
- StandardError
- Dependabot::SharedHelpers::HelperSubprocessFailed
- Defined in:
- lib/dependabot/shared_helpers.rb
Instance Attribute Summary collapse
-
#error_class ⇒ Object
readonly
Returns the value of attribute error_class.
-
#error_context ⇒ Object
readonly
Returns the value of attribute error_context.
-
#trace ⇒ Object
readonly
Returns the value of attribute trace.
Instance Method Summary collapse
-
#initialize(message:, error_context:, error_class: nil, trace: nil) ⇒ HelperSubprocessFailed
constructor
A new instance of HelperSubprocessFailed.
- #raven_context ⇒ Object
Constructor Details
#initialize(message:, error_context:, error_class: nil, trace: nil) ⇒ HelperSubprocessFailed
Returns a new instance of HelperSubprocessFailed.
67 68 69 70 71 72 73 |
# File 'lib/dependabot/shared_helpers.rb', line 67 def initialize(message:, error_context:, error_class: nil, trace: nil) super() @error_class = error_class || "" @error_context = error_context @command = error_context[:command] @trace = trace end |
Instance Attribute Details
#error_class ⇒ Object (readonly)
Returns the value of attribute error_class.
65 66 67 |
# File 'lib/dependabot/shared_helpers.rb', line 65 def error_class @error_class end |
#error_context ⇒ Object (readonly)
Returns the value of attribute error_context.
65 66 67 |
# File 'lib/dependabot/shared_helpers.rb', line 65 def error_context @error_context end |
#trace ⇒ Object (readonly)
Returns the value of attribute trace.
65 66 67 |
# File 'lib/dependabot/shared_helpers.rb', line 65 def trace @trace end |
Instance Method Details
#raven_context ⇒ Object
75 76 77 |
# File 'lib/dependabot/shared_helpers.rb', line 75 def raven_context { fingerprint: [@command], extra: @error_context } end |