Files
hyperf-saml/src/Exceptions/RuntimeException.php
2023-12-25 17:10:21 +08:00

46 lines
830 B
PHP

<?php
declare(strict_types=1);
namespace Singularity\HyperfSaml\Exceptions;
use Throwable;
class RuntimeException extends \RuntimeException
{
public function __construct(
public string $statusCode,
private string $messageId = '',
private string $relayState = '',
$message = "",
$code = 0,
Throwable $previous = null
) {
parent::__construct($message, $code, $previous);
}
/**
* @return string
*/
public function getStatusCode(): string
{
return $this->statusCode;
}
/**
* @return string
*/
public function getRelayState(): string
{
return $this->relayState;
}
/**
* @return string
*/
public function getMessageId(): string
{
return $this->messageId;
}
}