4 require_once
'./Services/Exceptions/classes/class.ilException.php';
66 switch ($this->exception_type) {
67 case self::TYPE_EXCEPTION:
68 $message =
$lng->txt(
'dcl_wrong_input_type');
70 case self::LENGTH_EXCEPTION:
71 $message =
$lng->txt(
'dcl_wrong_length');
73 case self::REGEX_EXCEPTION:
74 $message =
$lng->txt(
'dcl_wrong_regex');
76 case self::REGEX_CONFIG_EXCEPTION:
77 $message =
$lng->txt(
'dcl_invalid_regex_config');
79 case self::UNIQUE_EXCEPTION:
80 $message =
$lng->txt(
'dcl_unique_exception');
83 $message =
$lng->txt(
'dcl_noturl_exception');
86 $message =
$lng->txt(
'dcl_notimage_exception');
88 case self::WRONG_FILE_TYPE:
89 $message =
$lng->txt(
'dcl_not_supported_file_type');
91 case self::CUSTOM_MESSAGE:
95 $message =
$lng->txt(
'dcl_unknown_exception');
98 if(strlen($this->additional_text) > 0) {
99 $message .=
" ".$this->additional_text;
Base class for ILIAS Exception handling.