aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/ForbiddenException.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-04-29 13:13:47 +0200
committerRoeland Jago Douma <rullzer@owncloud.com>2016-04-29 13:13:47 +0200
commitf5e0d6ae6adacc44d2e7821425af39ba0a7dc71a (patch)
treee717eb0e4f1b6b3485c6d7fbb1d2df195be9609a /lib/private/ForbiddenException.php
parent5b45f0f91448f109ff33d4fb03368a0405e1da10 (diff)
downloadnextcloud-server-f5e0d6ae6adacc44d2e7821425af39ba0a7dc71a.tar.gz
nextcloud-server-f5e0d6ae6adacc44d2e7821425af39ba0a7dc71a.zip
Move more of \OC to PSR-4
* \OC\DateTimeFormatter * \OC\DateTimeZone * \OC\ForbiddenException * \OC\HTTPHelper * \OC\HintException * \OC\LargeFileHelper * \OC\Log * \OC\NaturalSort * \OC\NavigationManager * \OC\NeedsUpdateException * \OC\NotSquareException
Diffstat (limited to 'lib/private/ForbiddenException.php')
-rw-r--r--lib/private/ForbiddenException.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/private/ForbiddenException.php b/lib/private/ForbiddenException.php
new file mode 100644
index 00000000000..48be35ba316
--- /dev/null
+++ b/lib/private/ForbiddenException.php
@@ -0,0 +1,30 @@
+<?php
+/**
+ * @author Morris Jobke <hey@morrisjobke.de>
+ * @author Vincent Petry <pvince81@owncloud.com>
+ *
+ * @copyright Copyright (c) 2016, ownCloud, Inc.
+ * @license AGPL-3.0
+ *
+ * This code is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License, version 3,
+ * along with this program. If not, see <http://www.gnu.org/licenses/>
+ *
+ */
+
+namespace OC;
+
+/**
+ * Exception thrown whenever access to a resource has
+ * been forbidden or whenever a user isn't authenticated.
+ */
+class ForbiddenException extends \Exception {
+}