ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSystemStyleExceptionBase Class Reference

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

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

Public Member Functions

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

Protected Member Functions

 assignMessageToCode ()
 

Protected Attributes

 $message = ''
 
 $code = -1
 
string $add_info = ''
 

Detailed Description

Class for advanced editing exception handling in ILIAS.

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

Constructor & Destructor Documentation

◆ __construct()

ilSystemStyleExceptionBase::__construct ( int  $exception_code = -1,
string  $exception_info = '' 
)

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

39 {
40 $this->code = $exception_code;
41 $this->add_info = $exception_info;
42 $this->assignMessageToCode();
43 parent::__construct($this->message, $this->code);
44 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct(), and assignMessageToCode().

+ Here is the call graph for this function:

Member Function Documentation

◆ __toString()

ilSystemStyleExceptionBase::__toString ( )

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

48 : string
49 {
50 return get_class($this) . " '$this->message' in $this->file($this->line)\n"
51 . "{$this->getTraceAsString()}";
52 }

◆ assignMessageToCode()

ilSystemStyleExceptionBase::assignMessageToCode ( )
abstractprotected

Reimplemented in ilSystemStyleException, and ilSystemStyleMessageStackException.

Referenced by __construct().

+ Here is the caller graph for this function:

Field Documentation

◆ $add_info

string ilSystemStyleExceptionBase::$add_info = ''
protected

◆ $code

ilSystemStyleExceptionBase::$code = -1
protected

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

◆ $message

ilSystemStyleExceptionBase::$message = ''
protected

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


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