Exception: Dependabot::SharedHelpers::HelperSubprocessFailed
- Inherits:
-
DependabotError
- Object
- StandardError
- DependabotError
- Dependabot::SharedHelpers::HelperSubprocessFailed
- 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
-
#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.
52 53 54 55 56 57 58 |
# File 'lib/dependabot/shared_helpers.rb', line 52 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.
50 51 52 |
# File 'lib/dependabot/shared_helpers.rb', line 50 def error_class @error_class end |
#error_context ⇒ Object (readonly)
Returns the value of attribute error_context.
50 51 52 |
# File 'lib/dependabot/shared_helpers.rb', line 50 def error_context @error_context end |
#trace ⇒ Object (readonly)
Returns the value of attribute trace.
50 51 52 |
# File 'lib/dependabot/shared_helpers.rb', line 50 def trace @trace end |
Instance Method Details
#raven_context ⇒ Object
60 61 62 |
# File 'lib/dependabot/shared_helpers.rb', line 60 def raven_context { fingerprint: [@command], extra: @error_context } end |