mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Update some modules to throw exceptions instead of BaseObject
This commit is contained in:
parent
f6fa7493f6
commit
1863edcbb8
12 changed files with 118 additions and 118 deletions
|
|
@ -76,7 +76,7 @@ class installController extends install
|
|||
{
|
||||
if ($oDB->isTableExists($table_name))
|
||||
{
|
||||
return $this->setError('msg_table_already_exists');
|
||||
throw new Rhymix\Framework\Exception('msg_table_already_exists');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -99,7 +99,7 @@ class installController extends install
|
|||
// Check if it is already installed
|
||||
if (Context::isInstalled())
|
||||
{
|
||||
return $this->setError('msg_already_installed');
|
||||
throw new Rhymix\Framework\Exception('msg_already_installed');
|
||||
}
|
||||
|
||||
// Get install parameters.
|
||||
|
|
@ -227,7 +227,7 @@ class installController extends install
|
|||
catch(Exception $e)
|
||||
{
|
||||
$oDB->rollback();
|
||||
return $this->setError($e->getMessage());
|
||||
throw new Rhymix\Framework\Exception($e->getMessage());
|
||||
}
|
||||
|
||||
// Execute the install script.
|
||||
|
|
@ -411,7 +411,7 @@ class installController extends install
|
|||
else
|
||||
{
|
||||
FileHandler::removeFile($this->flagLicenseAgreement);
|
||||
return $this->setError('msg_must_accept_license_agreement');
|
||||
throw new Rhymix\Framework\Exception('msg_must_accept_license_agreement');
|
||||
}
|
||||
|
||||
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON')))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue