69 public function __construct($exception_code = -1, $exception_info =
"")
71 $this->add_info = $exception_info;
72 $this->code = $exception_code;
74 parent::__construct($this->message, $exception_code);
79 switch ($this->code) {
97 $this->message =
"Invalid mandatory entry Attribute: " .
$this->add_info;
100 $this->message =
"There are entries with the same ID. Duplicate: " .
$this->add_info;
103 $this->message =
"There are multiple root entry. Duplicate: " .
$this->add_info;
109 $this->message =
"No YAML Description found for Entry returned by: '" . $this->add_info .
110 "' (check if the entry is properly introduced and closed with '---' before return statement)";
113 $this->message =
"No Return statement given for Entry: " .
$this->add_info;
119 $this->message =
"Entry Title missing (check if valid function name is set for all entries): " .
$this->add_info;
126 $this->message =
"Invalid file path or file not readable: " .
$this->add_info;
154 $this->message =
"Max nesting reached while crowling (Factories might contain a circle), info: " .
$this->add_info;
166 return get_class($this) .
" '{$this->message}' in {$this->file}({$this->line})\n"
167 .
"{$this->getTraceAsString()}";
An exception for terminatinating execution or to throw for unit testing.
const ENTRY_WITHOUT_FUNCTION
__construct($exception_code=-1, $exception_info="")
ilKitchenSinkException constructor.
const INVALID_MANDATORY_ENTRY_ATTRIBUTE
const PARSING_YAML_ENTRY_FAILED
const FILE_DELETION_FAILED
const INVALID_RULES_ENTRY
const LESS_COMPILE_FAILED
const FOLDER_DELETION_FAILED
const FILE_OPENING_FAILED
const FOLDER_CREATION_FAILED
const FILE_CREATION_FAILED
const ENTRY_WITH_NO_VALID_RETURN_STATEMENT
const DUPLICATE_ROOT_ENTRY
const CRAWL_MAX_NESTING_REACHED
const ENTRY_TITLE_MISSING
const ENTRY_WITH_NO_YAML_DESCRIPTION