Exception: Tempo::DuplicateRecordError
- Inherits:
-
Exception
- Object
- Exception
- Tempo::DuplicateRecordError
- Defined in:
- lib/tempo/exceptions.rb
Instance Method Summary collapse
-
#initialize(file) ⇒ DuplicateRecordError
constructor
A new instance of DuplicateRecordError.
- #to_s ⇒ Object
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_s ⇒ Object
80 81 82 |
# File 'lib/tempo/exceptions.rb', line 80 def to_s @message end |