Exception: Travis::Client::AssetNotFound

Inherits:
Error
  • Object
show all
Defined in:
lib/travis/client/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(file, *args) ⇒ AssetNotFound

Returns a new instance of AssetNotFound.



29
30
31
32
33
34
35
# File 'lib/travis/client/error.rb', line 29

def initialize(file, *args)
  if (md = file.match(%r{init/(?<lang>[^.]+)\.yml$}))
    super "unknown language #{md[:lang]}", *args
  else
    super file, *args
  end
end