Merge branch '3.0'
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / exception / ErrorException.class.php
CommitLineData
b25ad8f3
TD
1<?php
2namespace wcf\system\exception;
3
4/**
5 * This is a custom implementation of the default \ErrorException.
6 * It is used for backwards compatibility reasons. Do not rely on it
7 * inheriting \wcf\system\exception\SystemException.
8 *
9 * @author Tim Duesterhus
c839bd49 10 * @copyright 2001-2018 WoltLab GmbH
b25ad8f3 11 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
e71525e4
MW
12 * @package WoltLabSuite\Core\System\Exception
13 * @since 3.0
b25ad8f3
TD
14 */
15class ErrorException extends SystemException {
16 /**
0fcfe5f6 17 * @inheritDoc
b25ad8f3
TD
18 */
19 protected $severity;
20
21 /**
0fcfe5f6 22 * @inheritDoc
b25ad8f3
TD
23 */
24 public function __construct($message = "", $code = 0, $severity = 1, $filename = __FILE__, $lineno = __LINE__, $previous = null) {
25 parent::__construct($message, $code, "", $previous);
26
27 $this->severity = $severity;
28 }
29
30 /**
0fcfe5f6 31 * @inheritDoc
b25ad8f3
TD
32 */
33 public function getSeverity() {
34 return $this->severity;
35 }
36}