ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilSystemStyleExceptionBase Class Reference

Class for advanced editing exception handling in ILIAS. More...

+ Inheritance diagram for ilSystemStyleExceptionBase:
+ Collaboration diagram for ilSystemStyleExceptionBase:

Public Member Functions

 __construct ($exception_code=-1, $exception_info="")
 ilSystemStyleException constructor. More...
 
 __toString ()
 
- Public Member Functions inherited from ilException
 __construct ($a_message, $a_code=0)
 A message isn't optional as in build in class Exception. More...
 

Data Fields

const UNKNONW_EXCEPTION = -1
 

Protected Member Functions

 assignMessageToCode ()
 

Protected Attributes

 $message = ""
 
 $code = -1
 
 $add_info = ""
 

Detailed Description

Class for advanced editing exception handling in ILIAS.

Author
Timon Amstutz timon.nosp@m..ams.nosp@m.tutz@.nosp@m.ilub.nosp@m..unib.nosp@m.e.ch
Version
$Id$

Definition at line 13 of file class.ilSystemStyleExceptionBase.php.

Constructor & Destructor Documentation

◆ __construct()

ilSystemStyleExceptionBase::__construct (   $exception_code = -1,
  $exception_info = "" 
)

ilSystemStyleException constructor.

Parameters
int$exception_code
string$exception_info

Definition at line 37 of file class.ilSystemStyleExceptionBase.php.

References assignMessageToCode().

38  {
39  $this->code = $exception_code;
40  $this->add_info = $exception_info;
41  $this->assignMessageToCode();
42  parent::__construct($this->message, $this->code);
43  }
+ Here is the call graph for this function:

Member Function Documentation

◆ __toString()

ilSystemStyleExceptionBase::__toString ( )
Returns
string

Definition at line 50 of file class.ilSystemStyleExceptionBase.php.

51  {
52  return get_class($this) . " '{$this->message}' in {$this->file}({$this->line})\n"
53  . "{$this->getTraceAsString()}";
54  }

◆ assignMessageToCode()

ilSystemStyleExceptionBase::assignMessageToCode ( )
abstractprotected

Referenced by __construct().

+ Here is the caller graph for this function:

Field Documentation

◆ $add_info

◆ $code

ilSystemStyleExceptionBase::$code = -1
protected

Definition at line 25 of file class.ilSystemStyleExceptionBase.php.

◆ $message

ilSystemStyleExceptionBase::$message = ""
protected

Definition at line 20 of file class.ilSystemStyleExceptionBase.php.

◆ UNKNONW_EXCEPTION

const ilSystemStyleExceptionBase::UNKNONW_EXCEPTION = -1

Definition at line 15 of file class.ilSystemStyleExceptionBase.php.


The documentation for this class was generated from the following file: