Exception: Dependabot::SharedHelpers::HelperSubprocessFailed
- Inherits:
-
DependabotError
- Object
- StandardError
- DependabotError
- Dependabot::SharedHelpers::HelperSubprocessFailed
- Extended by:
- T::Sig
- 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.
- #sentry_context ⇒ Object
Constructor Details
#initialize(message:, error_context:, error_class: nil, trace: nil) ⇒ HelperSubprocessFailed
Returns a new instance of HelperSubprocessFailed.
107 108 109 110 111 112 113 |
# File 'lib/dependabot/shared_helpers.rb', line 107 def initialize(message:, error_context:, error_class: nil, trace: nil) super() @error_class = T.let(error_class || "HelperSubprocessFailed", String) @error_context = error_context @fingerprint = T.let(error_context[:fingerprint] || error_context[:command], T.nilable(String)) @trace = trace end |
Instance Attribute Details
#error_class ⇒ Object (readonly)
Returns the value of attribute error_class.
91 92 93 |
# File 'lib/dependabot/shared_helpers.rb', line 91 def error_class @error_class end |
#error_context ⇒ Object (readonly)
Returns the value of attribute error_context.
94 95 96 |
# File 'lib/dependabot/shared_helpers.rb', line 94 def error_context @error_context end |
#trace ⇒ Object (readonly)
Returns the value of attribute trace.
97 98 99 |
# File 'lib/dependabot/shared_helpers.rb', line 97 def trace @trace end |
Instance Method Details
#sentry_context ⇒ Object
116 117 118 |
# File 'lib/dependabot/shared_helpers.rb', line 116 def sentry_context { fingerprint: [@fingerprint], extra: @error_context.except(:stderr_output, :fingerprint) } end |