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.
This commit is contained in:
Robin McCorkell
2015-09-05 16:50:02 +01:00
parent 895e633732
commit 0fac2e3f3a
3 changed files with 53 additions and 9 deletions

View File

@@ -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);
}
/**