mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-04 05:59:55 +09:00
Update to laravel 7
This commit is contained in:
31
vendor/knplabs/github-api/lib/Github/Exception/SsoRequiredException.php
vendored
Normal file
31
vendor/knplabs/github-api/lib/Github/Exception/SsoRequiredException.php
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace Github\Exception;
|
||||
|
||||
use Throwable;
|
||||
|
||||
class SsoRequiredException extends RuntimeException
|
||||
{
|
||||
/** @var string */
|
||||
private $url;
|
||||
|
||||
/**
|
||||
* @param string $url
|
||||
* @param int $code
|
||||
* @param Throwable|null $previous
|
||||
*/
|
||||
public function __construct(string $url, int $code = 0, Throwable $previous = null)
|
||||
{
|
||||
$this->url = $url;
|
||||
|
||||
parent::__construct('Resource protected by organization SAML enforcement. You must grant your personal token access to this organization.', $code, $previous);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUrl()
|
||||
{
|
||||
return $this->url;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user