* @copyright 2019 * @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2 * @category Stud.IP */ /** * This class is a specialisation of the standard Exception class * with a specialisation to display exception data in Message boxes. */ class StudipException extends Exception { protected $data = []; public function __construct($message = '', Array $data = [], $code = 0, Throwable $previous = null) { parent::__construct($message, $code, $previous); $this->data = $data; } public function getData() { return $this->data; } }