4 require_once
'Services/Exceptions/classes/class.ilException.php';
5 require_once
'class.ilSystemStyleExceptionBase.php';
50 switch ($this->code) {
51 case self::EMPTY_ENTRY:
54 case self::PARSING_JSON_FAILED:
57 case self::INVALID_MANDATORY_ENTRY_ATTRIBUTE:
58 $this->message =
"Invalid mandatory entry Attribute: " .
$this->add_info;
60 case self::DUPLICATE_ENTRY:
61 $this->message =
"There are entries with the same ID. Duplicate: " .
$this->add_info;
63 case self::DUPLICATE_ROOT_ENTRY:
64 $this->message =
"There are multiple root entry. Duplicate: " .
$this->add_info;
66 case self::INVALID_ID:
67 $this->message =
"No such ID found in list or tree: " .
$this->add_info;
69 case self::INVALID_CHARACTERS_IN_ID:
70 $this->message =
"The ID given contains invalid characters: " .
$this->add_info;
72 case self::INVALID_FILE_PATH:
73 $this->message =
"Invalid file path or file not readable: " .
$this->add_info;
75 case self::FILE_CREATION_FAILED:
78 case self::FOLDER_CREATION_FAILED:
81 case self::FOLDER_DELETION_FAILED:
84 case self::FILE_DELETION_FAILED:
87 case self::LESS_COMPILE_FAILED:
90 case self::FILE_OPENING_FAILED:
93 case self::SKIN_CSS_DOES_NOT_EXIST:
96 case self::SKIN_FOLDER_DOES_NOT_EXIST:
99 case self::INVALID_RULES_ENTRY:
102 case self::NO_STYLE_ID:
103 $this->message =
"No Style ID is given.";
105 case self::NO_SKIN_ID:
106 $this->message =
"No Skin ID is given.";
108 case self::NOT_EXISTING_SKIN:
111 case self::NOT_EXISTING_STYLE:
114 case self::SKIN_ALREADY_EXISTS:
117 case self::NO_PARENT_STYLE:
118 $this->message =
"No parent style defined for style: " .
$this->add_info;
120 case self::SUBSTYLE_ASSIGNMENT_EXISTS:
121 $this->message =
"The assignment of this substyle already exists: " .
$this->add_info;
123 case self::LESSC_NOT_INSTALLED:
124 $this->message =
"No less compiler is installed";
const SKIN_ALREADY_EXISTS
const LESSC_NOT_INSTALLED
const FOLDER_DELETION_FAILED
const PARSING_JSON_FAILED
const SUBSTYLE_ASSIGNMENT_EXISTS
const FOLDER_CREATION_FAILED
const DUPLICATE_ROOT_ENTRY
const FILE_CREATION_FAILED
const SKIN_FOLDER_DOES_NOT_EXIST
const INVALID_CHARACTERS_IN_ID
const FILE_DELETION_FAILED
Class for advanced editing exception handling in ILIAS.
const FILE_OPENING_FAILED
const SKIN_CSS_DOES_NOT_EXIST
const LESS_COMPILE_FAILED
const INVALID_MANDATORY_ENTRY_ATTRIBUTE
const INVALID_RULES_ENTRY
Class for advanced editing exception handling in ILIAS.