![]() Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : fdshops ( 1003) PHP Version : 8.2.21 Disable Function : NONE Directory : /home/fdshops/public_html/vendor/laravel/passport/src/Exceptions/ |
<?php namespace Laravel\Passport\Exceptions; use Exception; use Illuminate\Http\Response; use League\OAuth2\Server\Exception\OAuthServerException as LeagueException; class OAuthServerException extends Exception { /** * The response to render. * * @var \Illuminate\Http\Response */ protected $response; /** * Create a new OAuthServerException. * * @param \League\OAuth2\Server\Exception\OAuthServerException $e * @param \Illuminate\Http\Response $response * @return void */ public function __construct(LeagueException $e, Response $response) { parent::__construct($e->getMessage(), $e->getCode(), $e); $this->response = $response; } /** * Render the exception into an HTTP response. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function render($request) { return $this->response; } /** * Get the HTTP response status code. * * @return int */ public function statusCode() { return $this->response->getStatusCode(); } }