From 9f565321a3c07f1b742dbcac41de0655935de7b9 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Sun, 3 Feb 2019 03:15:07 +0100 Subject: [PATCH] Left better error message --- .../src/Domain/RequestManagement/User/RequestedUser.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/symfony/src/Domain/RequestManagement/User/RequestedUser.php b/application/symfony/src/Domain/RequestManagement/User/RequestedUser.php index c14ed12..c7b0247 100644 --- a/application/symfony/src/Domain/RequestManagement/User/RequestedUser.php +++ b/application/symfony/src/Domain/RequestManagement/User/RequestedUser.php @@ -28,13 +28,15 @@ class RequestedUser extends AbstractRequestedRightFacade implements RequestedUse } /** - * {@inheritdoc} + * You MUST NO use this method! Use UserSourceDirector instead! * + * @see UserSourceDirectorInterface + * {@inheritdoc} * @see \App\Attribut\RecieverAttributInterface::setReciever() */ public function setReciever(SourceInterface $reciever): void { - throw new SetNotPossibleException('It\'s not possible to set the reciever!'); + throw new SetNotPossibleException('It\'s not possible to set the reciever! Set it via '.UserSourceDirectorInterface::class.'!'); } /**