Exception: BunBo::FileExisted

Inherits:
BaseError
  • Object
show all
Defined in:
lib/bun_bo/errors/file_existed.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ FileExisted

Returns a new instance of FileExisted.



5
6
7
# File 'lib/bun_bo/errors/file_existed.rb', line 5

def initialize(path)
  @path = path
end

Instance Method Details

#messageObject



9
10
11
# File 'lib/bun_bo/errors/file_existed.rb', line 9

def message
  "#{path} exists. No modification is applied for this file."
end