Skip to content

Commit

Permalink
Add PHPDoc for thrown exception
Browse files Browse the repository at this point in the history
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
  • Loading branch information
MorrisJobke committed Nov 19, 2018
1 parent 3525192 commit cef8ead
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/Files/ObjectStore/Swift.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public function writeObject($urn, $stream) {
* @param string $urn the unified resource name used to identify the object
* @return resource stream with the read data
* @throws \Exception from openstack lib when something goes wrong
* @throws NotFoundException if file does not exist
*/
public function readObject($urn) {
try {
Expand Down
3 changes: 3 additions & 0 deletions lib/public/Files/ObjectStore/IObjectStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
*/
namespace OCP\Files\ObjectStore;

use OCP\Files\NotFoundException;

/**
* Interface IObjectStore
*
Expand All @@ -41,6 +43,7 @@ public function getStorageId();
* @param string $urn the unified resource name used to identify the object
* @return resource stream with the read data
* @throws \Exception when something goes wrong, message will be logged
* @throws NotFoundException if file does not exist
* @since 7.0.0
*/
public function readObject($urn);
Expand Down

0 comments on commit cef8ead

Please sign in to comment.