Exception: Dependabot::GoModulePathMismatch
- Inherits:
-
DependabotError
- Object
- StandardError
- DependabotError
- Dependabot::GoModulePathMismatch
- 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
-
#declared_path ⇒ Object
readonly
Returns the value of attribute declared_path.
-
#discovered_path ⇒ Object
readonly
Returns the value of attribute discovered_path.
-
#go_mod ⇒ Object
readonly
Returns the value of attribute go_mod.
Instance Method Summary collapse
-
#initialize(go_mod, declared_path, discovered_path) ⇒ GoModulePathMismatch
constructor
A new instance of GoModulePathMismatch.
Constructor Details
#initialize(go_mod, declared_path, discovered_path) ⇒ GoModulePathMismatch
Returns a new instance of GoModulePathMismatch.
703 704 705 706 707 708 709 710 711 712 |
# File 'lib/dependabot/errors.rb', line 703 def initialize(go_mod, declared_path, discovered_path) @go_mod = go_mod @declared_path = declared_path @discovered_path = discovered_path msg = "The module path '#{@declared_path}' found in #{@go_mod} doesn't " \ "match the actual path '#{@discovered_path}' in the dependency's " \ "go.mod" super(msg) end |
Instance Attribute Details
#declared_path ⇒ Object (readonly)
Returns the value of attribute declared_path.
697 698 699 |
# File 'lib/dependabot/errors.rb', line 697 def declared_path @declared_path end |
#discovered_path ⇒ Object (readonly)
Returns the value of attribute discovered_path.
700 701 702 |
# File 'lib/dependabot/errors.rb', line 700 def discovered_path @discovered_path end |
#go_mod ⇒ Object (readonly)
Returns the value of attribute go_mod.
694 695 696 |
# File 'lib/dependabot/errors.rb', line 694 def go_mod @go_mod end |