diff options
author | ArthurHoaro <arthur@hoa.ro> | 2019-05-25 15:46:47 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-01-17 18:42:11 +0100 |
commit | 336a28fa4a09b968ce4705900bf57693e672f0bf (patch) | |
tree | b3773e674a59c441270a56441fbadfa619527940 /application/bookmark/exception/NotWritableDataStoreException.php | |
parent | 796c4c57d085ae4589b53dfe8369ae9ba30ffdaf (diff) | |
download | Shaarli-336a28fa4a09b968ce4705900bf57693e672f0bf.tar.gz Shaarli-336a28fa4a09b968ce4705900bf57693e672f0bf.tar.zst Shaarli-336a28fa4a09b968ce4705900bf57693e672f0bf.zip |
Introduce Bookmark object and Service layer to retrieve them
See https://github.com/shaarli/Shaarli/issues/1307 for details
Diffstat (limited to 'application/bookmark/exception/NotWritableDataStoreException.php')
-rw-r--r-- | application/bookmark/exception/NotWritableDataStoreException.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/application/bookmark/exception/NotWritableDataStoreException.php b/application/bookmark/exception/NotWritableDataStoreException.php new file mode 100644 index 00000000..95f34b50 --- /dev/null +++ b/application/bookmark/exception/NotWritableDataStoreException.php | |||
@@ -0,0 +1,19 @@ | |||
1 | <?php | ||
2 | |||
3 | |||
4 | namespace Shaarli\Bookmark\Exception; | ||
5 | |||
6 | |||
7 | class NotWritableDataStoreException extends \Exception | ||
8 | { | ||
9 | /** | ||
10 | * NotReadableDataStore constructor. | ||
11 | * | ||
12 | * @param string $dataStore file path | ||
13 | */ | ||
14 | public function __construct($dataStore) | ||
15 | { | ||
16 | $this->message = 'Couldn\'t load data from the data store file "'. $dataStore .'". '. | ||
17 | 'Your data might be corrupted, or your file isn\'t readable.'; | ||
18 | } | ||
19 | } | ||