| 123456789101112131415161718192021222324252627 |
- <?php
- /**
- * System exception
- *
- * Thrown if:
- * - system error occured
- * - unpredictable scenarios
- *
- * @author Malishev Dima <dima.malishev@gmail.com>
- * @author vesta, http://vestacp.com/
- * @copyright vesta 2010-2011
- */
- class SystemException extends Exception {
- const CODE_GENERAL = 0;
- public function __construct($message, $code=self::CODE_GENERAL, $previous=null) {
- parent::__construct($message, $code, $previous);
- }
- public function __toString() {
- print $this->message;
- }
- }
- ?>
|