ILIAS  release_8 Revision v8.23
ilSystemStyleException Class Reference

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

+ Inheritance diagram for ilSystemStyleException:
+ Collaboration diagram for ilSystemStyleException:

Data Fields

const PARSING_JSON_FAILED = 1
 
const EMPTY_ENTRY = 1001
 
const INVALID_MANDATORY_ENTRY_ATTRIBUTE = 1002
 
const DUPLICATE_ENTRY = 1003
 
const DUPLICATE_ROOT_ENTRY = 1004
 
const INVALID_ID = 1005
 
const INVALID_FILE_PATH = 1006
 
const INVALID_RULES_ENTRY = 1007
 
const INVALID_CHARACTERS_IN_ID = 1008
 
const FILE_CREATION_FAILED = 2001
 
const FOLDER_CREATION_FAILED = 2002
 
const FILE_OPENING_FAILED = 2003
 
const LESS_COMPILE_FAILED = 2004
 
const FOLDER_DELETION_FAILED = 2005
 
const FILE_DELETION_FAILED = 2006
 
const LESSC_NOT_INSTALLED = 2007
 
const SKIN_FOLDER_DOES_NOT_EXIST = 3001
 
const SKIN_CSS_DOES_NOT_EXIST = 3002
 
const NO_STYLE_ID = 5001
 
const NO_SKIN_ID = 5002
 
const NO_PARENT_STYLE = 5003
 
const NOT_EXISTING_STYLE = 5004
 
const NOT_EXISTING_SKIN = 5005
 
const SKIN_ALREADY_EXISTS = 6001
 
const SUBSTYLE_ASSIGNMENT_EXISTS = 7001
 

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.ilSystemStyleException.php.

Member Function Documentation

◆ assignMessageToCode()

ilSystemStyleException::assignMessageToCode ( )
protected

Definition at line 58 of file class.ilSystemStyleException.php.

References ilSystemStyleExceptionBase\$add_info.

58  : void
59  {
60  switch ($this->code) {
61  case self::EMPTY_ENTRY:
62  $this->message = 'Empty Entry ' . $this->add_info;
63  break;
64  case self::PARSING_JSON_FAILED:
65  $this->message = 'Parsing JSON Failed ' . $this->add_info;
66  break;
67  case self::INVALID_MANDATORY_ENTRY_ATTRIBUTE:
68  $this->message = 'Invalid mandatory entry Attribute: ' . $this->add_info;
69  break;
70  case self::DUPLICATE_ENTRY:
71  $this->message = 'There are entries with the same ID. Duplicate: ' . $this->add_info;
72  break;
73  case self::DUPLICATE_ROOT_ENTRY:
74  $this->message = 'There are multiple root entry. Duplicate: ' . $this->add_info;
75  break;
76  case self::INVALID_ID:
77  $this->message = 'No such ID found in list or tree: ' . $this->add_info;
78  break;
79  case self::INVALID_CHARACTERS_IN_ID:
80  $this->message = 'The ID given contains invalid characters: ' . $this->add_info;
81  break;
82  case self::INVALID_FILE_PATH:
83  $this->message = 'Invalid file path or file not readable: ' . $this->add_info;
84  break;
85  case self::FILE_CREATION_FAILED:
86  $this->message = 'File creation failed, path: ' . $this->add_info;
87  break;
88  case self::FOLDER_CREATION_FAILED:
89  $this->message = 'Folder creation failed, path: ' . $this->add_info;
90  break;
91  case self::FOLDER_DELETION_FAILED:
92  $this->message = 'Folder delation failed, path: ' . $this->add_info;
93  break;
94  case self::FILE_DELETION_FAILED:
95  $this->message = 'File delation failed, path: ' . $this->add_info;
96  break;
97  case self::LESS_COMPILE_FAILED:
98  $this->message = 'Compilation of less failed: ' . $this->add_info;
99  break;
100  case self::FILE_OPENING_FAILED:
101  $this->message = 'Failed to open file : ' . $this->add_info;
102  break;
103  case self::SKIN_CSS_DOES_NOT_EXIST:
104  $this->message = 'Skin CSS does not exist: ' . $this->add_info;
105  break;
106  case self::SKIN_FOLDER_DOES_NOT_EXIST:
107  $this->message = 'Skin folder does not exist: ' . $this->add_info;
108  break;
109  case self::INVALID_RULES_ENTRY:
110  $this->message = 'Invalid rules entry: ' . $this->add_info;
111  break;
112  case self::NO_STYLE_ID:
113  $this->message = 'No Style ID is given.';
114  break;
115  case self::NO_SKIN_ID:
116  $this->message = 'No Skin ID is given.';
117  break;
118  case self::NOT_EXISTING_SKIN:
119  $this->message = 'Skin does not exist: ' . $this->add_info;
120  break;
121  case self::NOT_EXISTING_STYLE:
122  $this->message = 'Style does not exist: ' . $this->add_info;
123  break;
124  case self::SKIN_ALREADY_EXISTS:
125  $this->message = 'Skin already exists: ' . $this->add_info;
126  break;
127  case self::NO_PARENT_STYLE:
128  $this->message = 'No parent style defined for style: ' . $this->add_info;
129  break;
130  case self::SUBSTYLE_ASSIGNMENT_EXISTS:
131  $this->message = 'The assignment of this substyle already exists: ' . $this->add_info;
132  break;
133  case self::LESSC_NOT_INSTALLED:
134  $this->message = 'No less compiler is installed';
135  break;
136  default:
137  $this->message = 'Unknown Exception ' . $this->add_info;
138  break;
139  }
140  }

Field Documentation

◆ DUPLICATE_ENTRY

const ilSystemStyleException::DUPLICATE_ENTRY = 1003

Definition at line 30 of file class.ilSystemStyleException.php.

◆ DUPLICATE_ROOT_ENTRY

const ilSystemStyleException::DUPLICATE_ROOT_ENTRY = 1004

Definition at line 31 of file class.ilSystemStyleException.php.

◆ EMPTY_ENTRY

const ilSystemStyleException::EMPTY_ENTRY = 1001

Definition at line 28 of file class.ilSystemStyleException.php.

◆ FILE_CREATION_FAILED

const ilSystemStyleException::FILE_CREATION_FAILED = 2001

Definition at line 37 of file class.ilSystemStyleException.php.

Referenced by ilFileSystemHelper\recursiveCopy().

◆ FILE_DELETION_FAILED

const ilSystemStyleException::FILE_DELETION_FAILED = 2006

Definition at line 42 of file class.ilSystemStyleException.php.

◆ FILE_OPENING_FAILED

const ilSystemStyleException::FILE_OPENING_FAILED = 2003

◆ FOLDER_CREATION_FAILED

const ilSystemStyleException::FOLDER_CREATION_FAILED = 2002

Definition at line 38 of file class.ilSystemStyleException.php.

Referenced by ilFileSystemHelper\recursiveCopy().

◆ FOLDER_DELETION_FAILED

const ilSystemStyleException::FOLDER_DELETION_FAILED = 2005

Definition at line 41 of file class.ilSystemStyleException.php.

◆ INVALID_CHARACTERS_IN_ID

const ilSystemStyleException::INVALID_CHARACTERS_IN_ID = 1008

Definition at line 35 of file class.ilSystemStyleException.php.

Referenced by ilSkinStyle\setId(), and ilSkin\setId().

◆ INVALID_FILE_PATH

const ilSystemStyleException::INVALID_FILE_PATH = 1006

Definition at line 33 of file class.ilSystemStyleException.php.

◆ INVALID_ID

◆ INVALID_MANDATORY_ENTRY_ATTRIBUTE

const ilSystemStyleException::INVALID_MANDATORY_ENTRY_ATTRIBUTE = 1002

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

◆ INVALID_RULES_ENTRY

const ilSystemStyleException::INVALID_RULES_ENTRY = 1007

Definition at line 34 of file class.ilSystemStyleException.php.

◆ LESS_COMPILE_FAILED

const ilSystemStyleException::LESS_COMPILE_FAILED = 2004

Definition at line 40 of file class.ilSystemStyleException.php.

Referenced by ilSkinStyleContainer\compileLess().

◆ LESSC_NOT_INSTALLED

const ilSystemStyleException::LESSC_NOT_INSTALLED = 2007

Definition at line 43 of file class.ilSystemStyleException.php.

Referenced by ilSkinStyleContainer\compileLess().

◆ NO_PARENT_STYLE

const ilSystemStyleException::NO_PARENT_STYLE = 5003

Definition at line 50 of file class.ilSystemStyleException.php.

Referenced by ilSkinFactory\__construct().

◆ NO_SKIN_ID

const ilSystemStyleException::NO_SKIN_ID = 5002

◆ NO_STYLE_ID

const ilSystemStyleException::NO_STYLE_ID = 5001

◆ NOT_EXISTING_SKIN

const ilSystemStyleException::NOT_EXISTING_SKIN = 5005

Definition at line 52 of file class.ilSystemStyleException.php.

◆ NOT_EXISTING_STYLE

const ilSystemStyleException::NOT_EXISTING_STYLE = 5004

◆ PARSING_JSON_FAILED

const ilSystemStyleException::PARSING_JSON_FAILED = 1

Definition at line 26 of file class.ilSystemStyleException.php.

◆ SKIN_ALREADY_EXISTS

const ilSystemStyleException::SKIN_ALREADY_EXISTS = 6001

Definition at line 54 of file class.ilSystemStyleException.php.

Referenced by ilSkinStyleContainer\create().

◆ SKIN_CSS_DOES_NOT_EXIST

const ilSystemStyleException::SKIN_CSS_DOES_NOT_EXIST = 3002

Definition at line 46 of file class.ilSystemStyleException.php.

◆ SKIN_FOLDER_DOES_NOT_EXIST

const ilSystemStyleException::SKIN_FOLDER_DOES_NOT_EXIST = 3001

Definition at line 45 of file class.ilSystemStyleException.php.

◆ SUBSTYLE_ASSIGNMENT_EXISTS

const ilSystemStyleException::SUBSTYLE_ASSIGNMENT_EXISTS = 7001

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