Update exception handling in ProcessAdditional class and related scripts

This commit is contained in:
DariusIII
2018-10-03 14:52:40 +02:00
parent fb89916824
commit 68ac1baec6
4 changed files with 4 additions and 35 deletions
@@ -529,7 +529,6 @@ class ProcessAdditional
* @param string $groupID
* @param string $guidChar
*
* @throws \Blacklight\processing\post\ProcessAdditionalException
* @throws \Exception
*/
public function start($groupID = '', $guidChar = ''): void
@@ -563,7 +562,6 @@ class ProcessAdditional
* @param string $groupID
* @throws \RuntimeException
* @throws \Exception
* @throws \Blacklight\processing\post\ProcessAdditionalException
*/
protected function _setMainTempPath(&$guidChar, &$groupID = ''): void
{
@@ -592,7 +590,7 @@ class ProcessAdditional
}
if (! is_dir($this->_mainTmpPath)) {
throw new ProcessAdditionalException('Could not create the tmpunrar folder ('.$this->_mainTmpPath.')');
throw new \RuntimeException('Could not create the tmpunrar folder ('.$this->_mainTmpPath.')');
}
$this->_clearMainTmpPath();