watcheditem: Replace error message strings with constant string
authorDerick Alangi <alangiderick@gmail.com>
Fri, 1 Feb 2019 15:55:29 +0000 (16:55 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Fri, 1 Feb 2019 15:55:29 +0000 (16:55 +0100)
commite01c7b8a87fa0263e4389c25927592b3f042842b
tree337b81a965553e877f1d7bb6b773192599cef1f7
parentace00ba8327c2b73ab8e0b225a3782b49ff4de14
watcheditem: Replace error message strings with constant string

As the messages are the same and in addition using the same class
DBReadOnlyError, make the error message a constant and pass it as
self::DB_READONLY_ERROR argument to this class. Changing the error
will apply to the class as intended rather than change it in each
single place that this string appears.

Change-Id: I7f978cc334020746b4c4405fa2a0a73219bdacac
includes/watcheditem/NoWriteWatchedItemStore.php