- throw new ClientException(_('No such bookmark.'), 404);
- }
-
- $this->user = User::staticGet('id', $this->bookmark->profile_id);
-
- if (empty($this->user)) {
- throw new ClientException(_('No such user.'), 404);
- }
-
- $this->profile = $this->user->getProfile();
-
- if (empty($this->profile)) {
- throw new ServerException(_('User without a profile.'));
+ // TRANS: Client exception thrown when referring to a non-existing bookmark.
+ throw new ClientException(_m('No such bookmark.'), 404);