summaryrefslogtreecommitdiffstats
path: root/lib/public/lock/lockedexception.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/lock/lockedexception.php')
-rw-r--r--lib/public/lock/lockedexception.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/public/lock/lockedexception.php b/lib/public/lock/lockedexception.php
index 4c0ca9b8c5b..87f7164b7e0 100644
--- a/lib/public/lock/lockedexception.php
+++ b/lib/public/lock/lockedexception.php
@@ -22,4 +22,25 @@
namespace OCP\Lock;
class LockedException extends \Exception {
+ /**
+ * @var string
+ */
+ private $path;
+
+ /**
+ * LockedException constructor.
+ *
+ * @param string $path
+ */
+ public function __construct($path) {
+ parent::__construct($path . ' is locked');
+ $this->path = $path;
+ }
+
+ /**
+ * @return string
+ */
+ public function getPath() {
+ return $this->path;
+ }
}