ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
 
- Data Fields inherited from ilSystemStyleExceptionBase
const UNKNONW_EXCEPTION = -1
 

Protected Member Functions

 assignMessageToCode ()
 
 assignMessageToCode ()
 

Additional Inherited Members

- Public Member Functions inherited from ilSystemStyleExceptionBase
 __construct ($exception_code=-1, $exception_info="")
 ilSystemStyleException constructor. More...
 
 __toString ()
 
 __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 14 of file class.ilSystemStyleException.php.

Member Function Documentation

◆ assignMessageToCode()

ilSystemStyleException::assignMessageToCode ( )
protected

Reimplemented from ilSystemStyleExceptionBase.

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

49 {
50 switch ($this->code) {
52 $this->message = "Empty Entry " . $this->add_info;
53 break;
55 $this->message = "Parsing JSON Failed " . $this->add_info;
56 break;
58 $this->message = "Invalid mandatory entry Attribute: " . $this->add_info;
59 break;
61 $this->message = "There are entries with the same ID. Duplicate: " . $this->add_info;
62 break;
64 $this->message = "There are multiple root entry. Duplicate: " . $this->add_info;
65 break;
67 $this->message = "No such ID found in list or tree: " . $this->add_info;
68 break;
70 $this->message = "The ID given contains invalid characters: " . $this->add_info;
71 break;
73 $this->message = "Invalid file path or file not readable: " . $this->add_info;
74 break;
76 $this->message = "File creation failed, path: " . $this->add_info;
77 break;
79 $this->message = "Folder creation failed, path: " . $this->add_info;
80 break;
82 $this->message = "Folder delation failed, path: " . $this->add_info;
83 break;
85 $this->message = "File delation failed, path: " . $this->add_info;
86 break;
88 $this->message = "Compilation of less failed: " . $this->add_info;
89 break;
91 $this->message = "Failed to open file : " . $this->add_info;
92 break;
94 $this->message = "Skin CSS does not exist: " . $this->add_info;
95 break;
97 $this->message = "Skin folder does not exist: " . $this->add_info;
98 break;
100 $this->message = "Invalid rules entry: " . $this->add_info;
101 break;
103 $this->message = "No Style ID is given.";
104 break;
105 case self::NO_SKIN_ID:
106 $this->message = "No Skin ID is given.";
107 break;
109 $this->message = "Skin does not exist: " . $this->add_info;
110 break;
112 $this->message = "Style does not exist: " . $this->add_info;
113 break;
115 $this->message = "Skin already exists: " . $this->add_info;
116 break;
118 $this->message = "No parent style defined for style: " . $this->add_info;
119 break;
121 $this->message = "The assignment of this substyle already exists: " . $this->add_info;
122 break;
124 $this->message = "No less compiler is installed";
125 break;
126 default:
127 $this->message = "Unknown Exception " . $this->add_info;
128 break;
129 }
130 }

References ilSystemStyleExceptionBase\$add_info, DUPLICATE_ENTRY, DUPLICATE_ROOT_ENTRY, EMPTY_ENTRY, FILE_CREATION_FAILED, FILE_DELETION_FAILED, FILE_OPENING_FAILED, FOLDER_CREATION_FAILED, FOLDER_DELETION_FAILED, INVALID_CHARACTERS_IN_ID, INVALID_FILE_PATH, INVALID_ID, INVALID_MANDATORY_ENTRY_ATTRIBUTE, INVALID_RULES_ENTRY, LESS_COMPILE_FAILED, LESSC_NOT_INSTALLED, NO_PARENT_STYLE, NO_SKIN_ID, NO_STYLE_ID, NOT_EXISTING_SKIN, NOT_EXISTING_STYLE, PARSING_JSON_FAILED, SKIN_ALREADY_EXISTS, SKIN_CSS_DOES_NOT_EXIST, SKIN_FOLDER_DOES_NOT_EXIST, and SUBSTYLE_ASSIGNMENT_EXISTS.

Field Documentation

◆ DUPLICATE_ENTRY

const ilSystemStyleException::DUPLICATE_ENTRY = 1003

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

Referenced by assignMessageToCode().

◆ DUPLICATE_ROOT_ENTRY

const ilSystemStyleException::DUPLICATE_ROOT_ENTRY = 1004

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

Referenced by assignMessageToCode().

◆ EMPTY_ENTRY

const ilSystemStyleException::EMPTY_ENTRY = 1001

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

Referenced by assignMessageToCode().

◆ FILE_CREATION_FAILED

const ilSystemStyleException::FILE_CREATION_FAILED = 2001

◆ FILE_DELETION_FAILED

const ilSystemStyleException::FILE_DELETION_FAILED = 2006

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

Referenced by assignMessageToCode().

◆ FILE_OPENING_FAILED

const ilSystemStyleException::FILE_OPENING_FAILED = 2003

◆ FOLDER_CREATION_FAILED

const ilSystemStyleException::FOLDER_CREATION_FAILED = 2002

◆ FOLDER_DELETION_FAILED

const ilSystemStyleException::FOLDER_DELETION_FAILED = 2005

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

Referenced by assignMessageToCode().

◆ INVALID_CHARACTERS_IN_ID

const ilSystemStyleException::INVALID_CHARACTERS_IN_ID = 1008

◆ INVALID_FILE_PATH

const ilSystemStyleException::INVALID_FILE_PATH = 1006

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

Referenced by assignMessageToCode().

◆ INVALID_ID

◆ INVALID_MANDATORY_ENTRY_ATTRIBUTE

const ilSystemStyleException::INVALID_MANDATORY_ENTRY_ATTRIBUTE = 1002

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

Referenced by assignMessageToCode().

◆ INVALID_RULES_ENTRY

const ilSystemStyleException::INVALID_RULES_ENTRY = 1007

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

Referenced by assignMessageToCode().

◆ LESS_COMPILE_FAILED

const ilSystemStyleException::LESS_COMPILE_FAILED = 2004

◆ LESSC_NOT_INSTALLED

const ilSystemStyleException::LESSC_NOT_INSTALLED = 2007

◆ NO_PARENT_STYLE

const ilSystemStyleException::NO_PARENT_STYLE = 5003

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

Referenced by assignMessageToCode().

◆ 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 42 of file class.ilSystemStyleException.php.

Referenced by assignMessageToCode().

◆ NOT_EXISTING_STYLE

const ilSystemStyleException::NOT_EXISTING_STYLE = 5004

◆ PARSING_JSON_FAILED

const ilSystemStyleException::PARSING_JSON_FAILED = 1

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

Referenced by assignMessageToCode().

◆ SKIN_ALREADY_EXISTS

const ilSystemStyleException::SKIN_ALREADY_EXISTS = 6001

◆ SKIN_CSS_DOES_NOT_EXIST

const ilSystemStyleException::SKIN_CSS_DOES_NOT_EXIST = 3002

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

Referenced by assignMessageToCode().

◆ SKIN_FOLDER_DOES_NOT_EXIST

const ilSystemStyleException::SKIN_FOLDER_DOES_NOT_EXIST = 3001

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

Referenced by assignMessageToCode().

◆ SUBSTYLE_ASSIGNMENT_EXISTS


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