ValidateActionException is now longer retarded
authorAlexander Ebert <ebert@woltlab.com>
Wed, 2 May 2012 15:48:52 +0000 (17:48 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 2 May 2012 15:48:52 +0000 (17:48 +0200)
wcfsetup/install/files/lib/system/exception/ValidateActionException.class.php

index d3a3f9b473728ec7c8e6e0ddd898dade665e197e..3a839781e5f4b94f491408eac310ecb7cdafedd2 100644 (file)
@@ -16,6 +16,13 @@ class ValidateActionException extends \Exception {
         * @see \Exception::__construct()
         */
        public function __construct($message) {
-               die($message);
+               $this->message = $message;
+       }
+       
+       /**
+        * @see \Exception::__toString()
+        */
+       public function __toString() {
+               return $this->message;
        }
 }