mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-21 09:20:08 -05:00
refactor: exceptions
This commit is contained in:
@@ -62,7 +62,7 @@ class DbLoad extends Command
|
||||
\exec($cmd, $output, $return);
|
||||
|
||||
if ($return !== 0) {
|
||||
throw new \Exception(\sprintf('Could not load database from file %s', $input));
|
||||
throw new \RuntimeException(\sprintf('Could not load database from file %s', $input));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,6 +87,6 @@ class BackupEncryption
|
||||
return $this->zipFileOptions[$type];
|
||||
}
|
||||
|
||||
throw new \Exception('Encryption key not set or invalid value', 1);
|
||||
throw new \RuntimeException('Encryption key not set or invalid value', 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user