CoreFiles by mySites.guru
CannotDecodeContent.php26 lines, 608 bytes, from Joomla_4.2.0-beta3-Beta-Full_Package.zip
Raw History Compare with 4.2.0-beta2
md5
40941caf2a97fd7657375d1d313bbb75
sha1
057232ca1c25072bcf813a980374c5a7bd2cb5be
sha256
46a8c3b6be2a75d2b9e0b15705d76f980b685327ae1c4bcf3f4fb386fa20550f
<?php

namespace Lcobucci\JWT\Encoding;

use JsonException;
use Lcobucci\JWT\Exception;
use RuntimeException;

final class CannotDecodeContent extends RuntimeException implements Exception
{
    /**
     * @param JsonException $previous
     *
     * @return self
     */
    public static function jsonIssues(JsonException $previous)
    {
        return new self('Error while decoding from JSON', 0, $previous);
    }

    /** @return self */
    public static function invalidBase64String()
    {
        return new self('Error while decoding from Base64Url, invalid base64 characters detected');
    }
}

The same content is in 75 releases, Joomla 4.2.0-beta3 to 4.4.14. See them all, or every version of this file.