use wcf\data\user\group\UserGroup;
use wcf\data\user\option\UserOption;
use wcf\data\user\UserProfile;
-use wcf\system\database\DatabaseException;
use wcf\system\database\util\PreparedStatementConditionBuilder;
use wcf\system\importer\ImportHandler;
use wcf\system\Regex;
$data = \unserialize($row['cache']);
if ($data['version_code'] < 1800) {
- throw new DatabaseException('Cannot import MyBB 1.6.x or less', $this->database);
+ throw new \RuntimeException('Cannot import MyBB 1.6.x or less.');
}
}
use wbb\data\board\Board;
use wcf\data\user\group\UserGroup;
use wcf\data\user\option\UserOption;
-use wcf\system\database\DatabaseException;
use wcf\system\database\util\PreparedStatementConditionBuilder;
use wcf\system\importer\ImportHandler;
use wcf\system\option\user\SelectOptionsUserOptionOutput;
parent::validateDatabaseAccess();
if (\version_compare($this->readOption('smfVersion'), '2.0.0', '<')) {
- throw new DatabaseException('Cannot import less than SMF 2.x', $this->database);
+ throw new \RuntimeException('Cannot import less than SMF 2.x.');
}
}
$templateversion = $this->readOption('templateversion');
if (\version_compare($templateversion, '3.8.0', '<')) {
- throw new DatabaseException('Cannot import less than vB 3.8.x', $this->database);
+ throw new \RuntimeException('Cannot import less than vBulletin 3.8.x.');
}
if (\version_compare($templateversion, '4.3.0 alpha 1', '>=')) {
- throw new DatabaseException('Cannot import greater than vB 4.2.x', $this->database);
+ throw new \RuntimeException('Cannot import greater than vBulletin 4.2.x.');
}
}
use wbb\data\board\Board;
use wcf\data\user\group\UserGroup;
use wcf\data\user\option\UserOption;
-use wcf\system\database\DatabaseException;
use wcf\system\exception\SystemException;
use wcf\system\importer\ImportHandler;
use wcf\system\Regex;
$templateversion = $this->readOption('templateversion');
if (\version_compare($templateversion, '5.0.0', '<')) {
- throw new DatabaseException('Cannot import less than vB 5.0.x', $this->database);
+ throw new \RuntimeException('Cannot import less than vBulletin 5.0.x.');
}
}