ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilSystemStyleIconException Class Reference

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

+ Inheritance diagram for ilSystemStyleIconException:
+ Collaboration diagram for ilSystemStyleIconException:

Data Fields

const IMAGES_FOLDER_DOES_NOT_EXIST = 1001
 
const ICON_DOES_NOT_EXIST = 1002
 
- Data Fields inherited from ilSystemStyleExceptionBase
const UNKNONW_EXCEPTION = -1
 

Protected Member Functions

 assignMessageToCode ()
 
 assignMessageToCode ()
 

Additional Inherited Members

- Public Member Functions inherited from ilSystemStyleExceptionBase
 __construct ($exception_code=-1, $exception_info="")
 ilSystemStyleException constructor. More...
 
 __toString ()
 
 __construct ($a_message, $a_code=0)
 A message isn't optional as in build in class Exception. More...
 
- Protected Attributes inherited from ilSystemStyleExceptionBase
 $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.ilSystemStyleIconException.php.

Member Function Documentation

◆ assignMessageToCode()

ilSystemStyleIconException::assignMessageToCode ( )
protected

Reimplemented from ilSystemStyleExceptionBase.

Definition at line 18 of file class.ilSystemStyleIconException.php.

19 {
20 switch ($this->code) {
22 $this->message = "Images folder set for this style does not exist or can not be read: " . $this->add_info;
23 break;
25 $this->message = "The selected Icon does not exit: " . $this->add_info;
26 break;
27 default:
28 $this->message = "Unknown Exception " . $this->add_info;
29 break;
30 }
31 }

References ilSystemStyleExceptionBase\$add_info, ICON_DOES_NOT_EXIST, and IMAGES_FOLDER_DOES_NOT_EXIST.

Field Documentation

◆ ICON_DOES_NOT_EXIST

◆ IMAGES_FOLDER_DOES_NOT_EXIST

const ilSystemStyleIconException::IMAGES_FOLDER_DOES_NOT_EXIST = 1001

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