ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
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
 

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, Throwable $previous=null)
 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.ilSystemStyleIconException.php.

Member Function Documentation

◆ assignMessageToCode()

ilSystemStyleIconException::assignMessageToCode ( )
protected

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

References ilSystemStyleExceptionBase\$add_info.

29  : void
30  {
31  switch ($this->code) {
32  case self::IMAGES_FOLDER_DOES_NOT_EXIST:
33  $this->message = 'Images folder set for this style does not exist or can not be read: ' . $this->add_info;
34  break;
35  case self::ICON_DOES_NOT_EXIST:
36  $this->message = 'The selected Icon does not exit: ' . $this->add_info;
37  break;
38  default:
39  $this->message = 'Unknown Exception ' . $this->add_info;
40  break;
41  }
42  }

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: