Add PHPDoc for thrown exception

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2018-11-19 15:34:07 +01:00
parent 35251928d5
commit cef8eadf2a
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
2 changed files with 4 additions and 0 deletions

View File

@ -86,6 +86,7 @@ class Swift implements IObjectStore {
* @param string $urn the unified resource name used to identify the object * @param string $urn the unified resource name used to identify the object
* @return resource stream with the read data * @return resource stream with the read data
* @throws \Exception from openstack lib when something goes wrong * @throws \Exception from openstack lib when something goes wrong
* @throws NotFoundException if file does not exist
*/ */
public function readObject($urn) { public function readObject($urn) {
try { try {

View File

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