|
|
@@ -43,12 +43,12 @@ class AdminAccessDataPersister implements ContextAwareDataPersisterInterface
|
|
|
|
|
|
$administrator = $this->accessUtils->findAdminFor($access->getOrganization());
|
|
|
if(!$administrator){
|
|
|
- throw new Exception('administrator_not_found', 404);
|
|
|
+ throw new \RuntimeException('administrator_not_found', 404);
|
|
|
}
|
|
|
|
|
|
$contactPoint = $this->contactPointUtils->getPersonContactPointPrincipal($administrator);
|
|
|
if(!$contactPoint){
|
|
|
- throw new Exception('administrator_contact_point_not_found', 404);
|
|
|
+ throw new \RuntimeException('administrator_contact_point_not_found', 404);
|
|
|
}
|
|
|
|
|
|
$contactPoint->setEmail($data->getEmail());
|
|
|
@@ -57,6 +57,6 @@ class AdminAccessDataPersister implements ContextAwareDataPersisterInterface
|
|
|
|
|
|
public function remove($data, array $context = [])
|
|
|
{
|
|
|
- throw new Exception('not supported', 500);
|
|
|
+ throw new \RuntimeException('not supported', 500);
|
|
|
}
|
|
|
}
|