ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilSystemStyleMessageStackException Class Reference

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

+ Inheritance diagram for ilSystemStyleMessageStackException:
+ Collaboration diagram for ilSystemStyleMessageStackException:

Data Fields

const MESSAGE_STACK_TYPE_ID_DOES_NOT_EXIST = 1001
 

Protected Member Functions

 assignMessageToCode ()
 
- Protected Member Functions inherited from ilSystemStyleExceptionBase
 assignMessageToCode ()
 

Additional Inherited Members

- Public Member Functions inherited from ilSystemStyleExceptionBase
 __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 Attributes inherited from ilSystemStyleExceptionBase
 $message = ''
 
 $code = -1
 
string $add_info = ''
 

Detailed Description

Class for advanced editing exception handling in ILIAS.

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

Member Function Documentation

◆ assignMessageToCode()

ilSystemStyleMessageStackException::assignMessageToCode ( )
protected

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

References ilSystemStyleExceptionBase\$add_info.

29  : void
30  {
31  switch ($this->code) {
32  case self::MESSAGE_STACK_TYPE_ID_DOES_NOT_EXIST:
33  $this->message = 'Type id does not exist in message stack';
34  break;
35  default:
36  $this->message = 'Unknown Exception ' . $this->add_info;
37  break;
38  }
39  }

Field Documentation

◆ MESSAGE_STACK_TYPE_ID_DOES_NOT_EXIST

const ilSystemStyleMessageStackException::MESSAGE_STACK_TYPE_ID_DOES_NOT_EXIST = 1001

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