Exception: Tempo::DuplicateRecordError

Inherits:
Exception
  • Object
show all
Defined in:
lib/tempo/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ DuplicateRecordError

Returns a new instance of DuplicateRecordError.



76
77
78
# File 'lib/tempo/exceptions.rb', line 76

def initialize(file)
  @message = "The file #{file} already exists"
end

Instance Method Details

#to_sObject



80
81
82
# File 'lib/tempo/exceptions.rb', line 80

def to_s
  @message
end