Added missing class
authorAlexander Ebert <ebert@woltlab.com>
Wed, 12 Feb 2014 20:57:12 +0000 (21:57 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 12 Feb 2014 20:57:12 +0000 (21:57 +0100)
wcfsetup/install/files/lib/system/exception/InvalidSecurityTokenException.class.php [new file with mode: 0644]

diff --git a/wcfsetup/install/files/lib/system/exception/InvalidSecurityTokenException.class.php b/wcfsetup/install/files/lib/system/exception/InvalidSecurityTokenException.class.php
new file mode 100644 (file)
index 0000000..bce56e1
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+namespace wcf\system\exception;
+use wcf\system\WCF;
+
+/**
+ * An InvalidSecurityTokenException is thrown when the security token does not match the active session.
+ * 
+ * @author     Alexander Ebert
+ * @copyright  2001-2014 WoltLab GmbH
+ * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package    com.woltlab.wcf
+ * @subpackage system.exception
+ * @category   Community Framework
+ */
+class InvalidSecurityTokenException extends UserException {
+       /**
+        * Creates a new InvalidSecurityTokenException object.
+        */
+       public function __construct() {
+               parent::__construct(WCF::getLanguage()->get('wcf.ajax.error.sessionExpired'));
+       }
+}