mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Add 3 special exception classes for common situations
This commit is contained in:
parent
1863edcbb8
commit
fe4e336f2b
11 changed files with 82 additions and 25 deletions
|
|
@ -297,7 +297,7 @@ class importerAdminController extends importer
|
|||
switch($type)
|
||||
{
|
||||
case 'ttxml' :
|
||||
if(!$target_module) throw new Rhymix\Framework\Exception('msg_invalid_request');
|
||||
if(!$target_module) throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
|
||||
$oModuleModel = getModel('module');
|
||||
$columnList = array('module_srl', 'module');
|
||||
|
|
@ -317,7 +317,7 @@ class importerAdminController extends importer
|
|||
break;
|
||||
case 'module' :
|
||||
// Check if the target module exists
|
||||
if(!$target_module) throw new Rhymix\Framework\Exception('msg_invalid_request');
|
||||
if(!$target_module) throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
$cur = $this->importModule($key, $cur, $index_file, $target_module);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue