mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix: Use UserFacingProcessingException properly in tests
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
1c33239e06
commit
8207afb7db
1 changed files with 2 additions and 3 deletions
|
|
@ -42,6 +42,7 @@ use OCP\TaskProcessing\Exception\NotFoundException;
|
|||
use OCP\TaskProcessing\Exception\PreConditionNotMetException;
|
||||
use OCP\TaskProcessing\Exception\ProcessingException;
|
||||
use OCP\TaskProcessing\Exception\UnauthorizedException;
|
||||
use OCP\TaskProcessing\Exception\UserFacingProcessingException;
|
||||
use OCP\TaskProcessing\Exception\ValidationException;
|
||||
use OCP\TaskProcessing\IManager;
|
||||
use OCP\TaskProcessing\IProvider;
|
||||
|
|
@ -294,9 +295,7 @@ class FailingSyncProviderWithUserFacingError implements IProvider, ISynchronousP
|
|||
}
|
||||
|
||||
public function process(?string $userId, array $input, callable $reportProgress): array {
|
||||
$e = new ProcessingException(self::ERROR_MESSAGE);
|
||||
$e->setUserFacingMessage(self::USER_FACING_ERROR_MESSAGE);
|
||||
throw $e;
|
||||
throw new UserFacingProcessingException(self::ERROR_MESSAGE, userFacingMessage: self::USER_FACING_ERROR_MESSAGE);
|
||||
}
|
||||
|
||||
public function getInputShapeEnumValues(): array {
|
||||
|
|
|
|||
Loading…
Reference in a new issue