summaryrefslogtreecommitdiffstats
path: root/lib/autoloader.php
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-09-05 16:50:02 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-09-05 16:50:02 +0100
commit0fac2e3f3aaaeaddf431f7877ebddb6372a00a42 (patch)
treea940bf4d733550b3829a213abd311de627683917 /lib/autoloader.php
parent895e6337325f4a107aeb834268bbcc0205ecb308 (diff)
downloadnextcloud-server-0fac2e3f3aaaeaddf431f7877ebddb6372a00a42.tar.gz
nextcloud-server-0fac2e3f3aaaeaddf431f7877ebddb6372a00a42.zip
Unique exception for invalid autoload paths, better handling
Background jobs are tolerant of stale entries left by disabled apps, which will cause an autoload exception.
Diffstat (limited to 'lib/autoloader.php')
-rw-r--r--lib/autoloader.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/autoloader.php b/lib/autoloader.php
index dd09c3b9cb5..41a040b3f54 100644
--- a/lib/autoloader.php
+++ b/lib/autoloader.php
@@ -27,6 +27,8 @@
namespace OC;
+use \OCP\AutoloadNotAllowedException;
+
class Autoloader {
private $useGlobalClassPath = true;
@@ -129,7 +131,7 @@ class Autoloader {
return true;
}
}
- throw new \Exception('Path not allowed: '. $fullPath);
+ throw new AutoloadNotAllowedException($fullPath);
}
/**