Exception: Textrepo::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/textrepo/error.rb

Overview

Following errors might occur in repository operations:

+---------------------------------+-----------------------+
| operation (args)                | error type            |
+---------------------------------+-----------------------+
| create (timestamp, text)        | Duplicate timestamp   |
|                                 | Empty text            |
+---------------------------------+-----------------------+
| read   (timestamp)              | Missing timestamp     |
+---------------------------------+-----------------------+
| update (timestamp, text)        | Mssing timestamp      |
|                                 | Empty text            |
+---------------------------------+-----------------------+
| delete (timestamp)              | Missing timestamp     |
+---------------------------------+-----------------------+
| search (pattern, stamp_pattern) | Invalid search result |
+---------------------------------+-----------------------+