Exception: LintFu::ProviderError

Inherits:
Exception
  • Object
show all
Defined in:
lib/lint_fu/source_control_provider.rb

Direct Known Subclasses

ProviderNotInstalled

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ ProviderError

Returns a new instance of ProviderError.



3
4
5
6
7
8
9
10
11
# File 'lib/lint_fu/source_control_provider.rb', line 3

def initialize(*args)
  if args.length == 2 && args[0].kind_of?(LintFu::SourceControlProvider)
    provider = args[0]
    path     = args[1]
    super("The #{provider.class.name} source control provider does not recognize #{path} as a valid repository")
  else
    super(*args)
  end
end