4require_once 
'./Services/Exceptions/classes/class.ilException.php';
 
   53    public function __construct($exception_code, $exception_info = 
"")
 
   55        $this->code = $exception_code;
 
   56        $this->add_info = $exception_info;
 
   58        parent::__construct($this->message, $this->code);
 
   65        switch ($this->code) {
 
   67                $this->message = 
$lng->txt(
"cld_no_service_active");
 
   70                $this->message = 
$lng->txt(
"cld_no_service_selected");
 
   73                $this->message = 
$lng->txt(
"cld_service_not_active");
 
   76                $this->message = 
$lng->txt(
"cld_service_class_file_not_found");
 
   79                $this->message = 
$lng->txt(
"cld_folder_not_existing_on_service");
 
   82                $this->message = 
$lng->txt(
"cld_folder_already_existing_on_service");
 
   85                $this->message = 
$lng->txt(
"cld_file_not_existing_on_service");
 
   88                $this->message = 
$lng->txt(
"cld_authentication_failed");
 
   91                $this->message = 
$lng->txt(
"cld_delete_failed");
 
   94                $this->message = 
$lng->txt(
"cld_add_items_from_service_failed");
 
   97                $this->message = 
$lng->txt(
"cld_add_download_failed");
 
  100                $this->message = 
$lng->txt(
"cld_folder_creation_failed");
 
  103                $this->message = 
$lng->txt(
"cld_upload_failed");
 
  106                $this->message = 
$lng->txt(
"cld_upload_failed_max_filesize");
 
  109                $this->message = 
$lng->txt(
"cld_invalid_input");
 
  112                $this->message = 
$lng->txt(
"cld_path_does_not_exist_in_file_tree_in_session");
 
  115                $this->message = 
$lng->txt(
"cld_id_does_not_exist_in_file_tree_in_session");
 
  118                $this->message = 
$lng->txt(
"cld_id_already_exists_in_file_tree_in_session");
 
  121                $this->message = 
$lng->txt(
"cld_plugin_hook_could_not_be_instantiated");
 
  124                $this->message = 
$lng->txt(
"cld_permission_denied");
 
  127                $this->message = 
$lng->txt(
"cld_permission_to_change_root_folder_denied");
 
  130                $this->message = 
$lng->txt(
"cld_unknown_exception");
 
  133        $this->message .= ($this->add_info ? 
": " : 
"") . $this->add_info;
 
  138        return get_class($this) . 
" '{$this->message}' in {$this->file}({$this->line})\n" 
  139            . 
"{$this->getTraceAsString()}";
 
An exception for terminatinating execution or to throw for unit testing.
const NO_SERVICE_SELECTED
const PERMISSION_TO_CHANGE_ROOT_FOLDER_DENIED
const PATH_DOES_NOT_EXIST_IN_FILE_TREE_IN_SESSION
const UPLOAD_FAILED_MAX_FILESIZE
const FOLDER_NOT_EXISTING_ON_SERVICE
const SERVICE_CLASS_FILE_NOT_FOUND
const FILE_NOT_EXISTING_ON_SERVICE
const AUTHENTICATION_FAILED
const PLUGIN_HOOK_COULD_NOT_BE_INSTANTIATED
const ADD_ITEMS_FROM_SERVICE_FAILED
const ID_DOES_NOT_EXIST_IN_FILE_TREE_IN_SESSION
const ID_ALREADY_EXISTS_IN_FILE_TREE_IN_SESSION
const FOLDER_ALREADY_EXISTING_ON_SERVICE
__construct($exception_code, $exception_info="")
const FOLDER_CREATION_FAILED
Base class for ILIAS Exception handling.