Exception: Esvien::BadRepository

Inherits:
Error
  • Object
show all
Defined in:
lib/esvien/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repo) ⇒ BadRepository

Returns a new instance of BadRepository.



8
9
10
# File 'lib/esvien/errors.rb', line 8

def initialize(repo)
  @repo = repo
end

Instance Attribute Details

#repoObject (readonly)

Returns the value of attribute repo.



6
7
8
# File 'lib/esvien/errors.rb', line 6

def repo
  @repo
end

Instance Method Details

#messageObject



12
13
14
# File 'lib/esvien/errors.rb', line 12

def message
  "No repository found at #{repo.uri}"
end