Exception: Dependabot::NpmAndYarn::FileUpdater::NoChangeError

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Includes:
HasSentryContext
Defined in:
lib/dependabot/npm_and_yarn/file_updater.rb

Instance Method Summary collapse

Constructor Details

#initialize(message:, error_context:) ⇒ NoChangeError

Returns a new instance of NoChangeError.



29
30
31
32
# File 'lib/dependabot/npm_and_yarn/file_updater.rb', line 29

def initialize(message:, error_context:)
  super(message)
  @error_context = error_context
end

Instance Method Details

#sentry_contextObject



35
36
37
# File 'lib/dependabot/npm_and_yarn/file_updater.rb', line 35

def sentry_context
  { extra: @error_context }
end