ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilSystemStyleExceptionBase.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/Exceptions/classes/class.ilException.php';
5
14{
16
20 protected $message = "";
21
25 protected $code = -1;
26
30 protected $add_info = "";
31
37 public function __construct($exception_code = -1, $exception_info = "")
38 {
39
40
41 $this->code = $exception_code;
42 $this->add_info = $exception_info;
43 $this->assignMessageToCode();
44 parent::__construct($this->message, $this->code);
45
46 }
47
48 abstract protected function assignMessageToCode();
49
53 public function __toString()
54 {
55 return get_class($this) . " '{$this->message}' in {$this->file}({$this->line})\n"
56 . "{$this->getTraceAsString()}";
57 }
58}
An exception for terminatinating execution or to throw for unit testing.
Base class for ILIAS Exception handling.
Class for advanced editing exception handling in ILIAS.
__construct($exception_code=-1, $exception_info="")
ilSystemStyleException constructor.