mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-02-21 20:20:34 +09:00
22 lines
556 B
PHP
22 lines
556 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace Lcobucci\JWT\Encoding;
|
|
|
|
use JsonException;
|
|
use Lcobucci\JWT\Exception;
|
|
use RuntimeException;
|
|
|
|
final class CannotDecodeContent extends RuntimeException implements Exception
|
|
{
|
|
public static function jsonIssues(JsonException $previous): self
|
|
{
|
|
return new self(message: 'Error while decoding from JSON', previous: $previous);
|
|
}
|
|
|
|
public static function invalidBase64String(): self
|
|
{
|
|
return new self('Error while decoding from Base64Url, invalid base64 characters detected');
|
|
}
|
|
}
|