[Pkg-owncloud-commits] [owncloud] 79/95: Add "throws" lines to calling methods and interface aswell
David Prévot
taffit at moszumanska.debian.org
Wed Mar 11 15:49:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.0.1
in repository owncloud.
commit 9f6a640e73d437909360cddd8e10aa62b06ea590
Author: Joas Schilling <nickvergessen at owncloud.com>
Date: Fri Feb 27 12:16:53 2015 +0100
Add "throws" lines to calling methods and interface aswell
---
lib/private/files/node/node.php | 23 +++++++++++++++++++++++
lib/public/files/node.php | 18 ++++++++++++++++++
2 files changed, 41 insertions(+)
diff --git a/lib/private/files/node/node.php b/lib/private/files/node/node.php
index 9446bff..e5b2194 100644
--- a/lib/private/files/node/node.php
+++ b/lib/private/files/node/node.php
@@ -152,6 +152,8 @@ class Node implements \OCP\Files\Node {
/**
* @return int
+ * @throws InvalidPathException
+ * @throws NotFoundException
*/
public function getId() {
return $this->getFileInfo()->getId();
@@ -166,6 +168,8 @@ class Node implements \OCP\Files\Node {
/**
* @return int
+ * @throws InvalidPathException
+ * @throws NotFoundException
*/
public function getMTime() {
return $this->getFileInfo()->getMTime();
@@ -173,6 +177,8 @@ class Node implements \OCP\Files\Node {
/**
* @return int
+ * @throws InvalidPathException
+ * @throws NotFoundException
*/
public function getSize() {
return $this->getFileInfo()->getSize();
@@ -180,6 +186,8 @@ class Node implements \OCP\Files\Node {
/**
* @return string
+ * @throws InvalidPathException
+ * @throws NotFoundException
*/
public function getEtag() {
return $this->getFileInfo()->getEtag();
@@ -187,6 +195,8 @@ class Node implements \OCP\Files\Node {
/**
* @return int
+ * @throws InvalidPathException
+ * @throws NotFoundException
*/
public function getPermissions() {
return $this->getFileInfo()->getPermissions();
@@ -194,6 +204,8 @@ class Node implements \OCP\Files\Node {
/**
* @return bool
+ * @throws InvalidPathException
+ * @throws NotFoundException
*/
public function isReadable() {
return $this->getFileInfo()->isReadable();
@@ -201,6 +213,8 @@ class Node implements \OCP\Files\Node {
/**
* @return bool
+ * @throws InvalidPathException
+ * @throws NotFoundException
*/
public function isUpdateable() {
return $this->getFileInfo()->isUpdateable();
@@ -208,6 +222,8 @@ class Node implements \OCP\Files\Node {
/**
* @return bool
+ * @throws InvalidPathException
+ * @throws NotFoundException
*/
public function isDeletable() {
return $this->getFileInfo()->isDeletable();
@@ -215,11 +231,18 @@ class Node implements \OCP\Files\Node {
/**
* @return bool
+ * @throws InvalidPathException
+ * @throws NotFoundException
*/
public function isShareable() {
return $this->getFileInfo()->isShareable();
}
+ /**
+ * @return bool
+ * @throws InvalidPathException
+ * @throws NotFoundException
+ */
public function isCreatable() {
return $this->getFileInfo()->isCreatable();
}
diff --git a/lib/public/files/node.php b/lib/public/files/node.php
index c3434b4..74355d1 100644
--- a/lib/public/files/node.php
+++ b/lib/public/files/node.php
@@ -89,6 +89,8 @@ interface Node extends FileInfo {
* Get the internal file id for the file or folder
*
* @return int
+ * @throws InvalidPathException
+ * @throws NotFoundException
*/
public function getId();
@@ -106,6 +108,8 @@ interface Node extends FileInfo {
* Get the modified date of the file or folder as unix timestamp
*
* @return int
+ * @throws InvalidPathException
+ * @throws NotFoundException
*/
public function getMTime();
@@ -113,6 +117,8 @@ interface Node extends FileInfo {
* Get the size of the file or folder in bytes
*
* @return int
+ * @throws InvalidPathException
+ * @throws NotFoundException
*/
public function getSize();
@@ -122,6 +128,8 @@ interface Node extends FileInfo {
* every time the file or folder is changed the Etag will change to
*
* @return string
+ * @throws InvalidPathException
+ * @throws NotFoundException
*/
public function getEtag();
@@ -135,6 +143,8 @@ interface Node extends FileInfo {
* - \OCP\Constants::PERMISSION_SHARE
*
* @return int
+ * @throws InvalidPathException
+ * @throws NotFoundException
*/
public function getPermissions();
@@ -142,6 +152,8 @@ interface Node extends FileInfo {
* Check if the file or folder is readable
*
* @return bool
+ * @throws InvalidPathException
+ * @throws NotFoundException
*/
public function isReadable();
@@ -149,6 +161,8 @@ interface Node extends FileInfo {
* Check if the file or folder is writable
*
* @return bool
+ * @throws InvalidPathException
+ * @throws NotFoundException
*/
public function isUpdateable();
@@ -156,6 +170,8 @@ interface Node extends FileInfo {
* Check if the file or folder is deletable
*
* @return bool
+ * @throws InvalidPathException
+ * @throws NotFoundException
*/
public function isDeletable();
@@ -163,6 +179,8 @@ interface Node extends FileInfo {
* Check if the file or folder is shareable
*
* @return bool
+ * @throws InvalidPathException
+ * @throws NotFoundException
*/
public function isShareable();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list