ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 ()
 
- Protected Member Functions inherited from ilSystemStyleExceptionBase
 assignMessageToCode ()
 

Additional Inherited Members

- Public Member Functions inherited from ilSystemStyleExceptionBase
 __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...
 
- 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

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

References ilSystemStyleExceptionBase\$add_info.

19  {
20  switch ($this->code) {
21  case self::IMAGES_FOLDER_DOES_NOT_EXIST:
22  $this->message = "Images folder set for this style does not exist or can not be read: " . $this->add_info;
23  break;
24  case self::ICON_DOES_NOT_EXIST:
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  }

Field Documentation

◆ ICON_DOES_NOT_EXIST

const ilSystemStyleIconException::ICON_DOES_NOT_EXIST = 1002

◆ IMAGES_FOLDER_DOES_NOT_EXIST

const ilSystemStyleIconException::IMAGES_FOLDER_DOES_NOT_EXIST = 1001

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