ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
4 require_once 'Services/Exceptions/classes/class.ilException.php';
5 
14 {
15  const UNKNONW_EXCEPTION = -1;
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  $this->code = $exception_code;
40  $this->add_info = $exception_info;
41  $this->assignMessageToCode();
42  parent::__construct($this->message, $this->code);
43  }
44 
45  abstract protected function assignMessageToCode();
46 
50  public function __toString()
51  {
52  return get_class($this) . " '{$this->message}' in {$this->file}({$this->line})\n"
53  . "{$this->getTraceAsString()}";
54  }
55 }
__construct($exception_code=-1, $exception_info="")
ilSystemStyleException constructor.
Class for advanced editing exception handling in ILIAS.