ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilSystemStyleIconException.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
25 {
26  public const IMAGES_FOLDER_DOES_NOT_EXIST = 1001;
27  public const ICON_DOES_NOT_EXIST = 1002;
28 
29  protected function assignMessageToCode(): 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  }
43 }
Class for advanced editing exception handling in ILIAS.
Class for advanced editing exception handling in ILIAS.