Exception: Dependabot::MissingEnvironmentVariable

Inherits:
DependabotError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/errors.rb

Constant Summary

Constants inherited from DependabotError

DependabotError::BASIC_AUTH_REGEX, DependabotError::FURY_IO_PATH_REGEX

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(environment_variable, message = "") ⇒ MissingEnvironmentVariable

Returns a new instance of MissingEnvironmentVariable.



734
735
736
737
738
739
# File 'lib/dependabot/errors.rb', line 734

def initialize(environment_variable, message = "")
  @environment_variable = environment_variable
  @message = message

  super("Missing environment variable #{@environment_variable}. #{@message}")
end

Instance Attribute Details

#environment_variableObject (readonly)

Returns the value of attribute environment_variable.



728
729
730
# File 'lib/dependabot/errors.rb', line 728

def environment_variable
  @environment_variable
end

#messageObject (readonly)

Returns the value of attribute message.



731
732
733
# File 'lib/dependabot/errors.rb', line 731

def message
  @message
end