1<?php
2
3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
4// See the LICENCE file in the repository root for full licence text.
5
6namespace App\Exceptions;
7
8class UserProfilePageLookupException extends SilencedException
9{
10 private $render;
11
12 public function __construct(callable $render)
13 {
14 $this->render = $render;
15 }
16
17 public function getResponse()
18 {
19 return ($this->render)();
20 }
21}