master

laravel/framework

Last updated at: 29/12/2023 09:25

InvalidSignatureException.php

TLDR

This file defines the InvalidSignatureException class, which extends the HttpException class. It is used to represent an exception when an invalid signature is encountered.

Classes

InvalidSignatureException

This class extends the HttpException class. It represents an exception that occurs when an invalid signature is encountered. The constructor sets the HTTP status code to 403 and the error message to "Invalid signature."

<?php

namespace Illuminate\Routing\Exceptions;

use Symfony\Component\HttpKernel\Exception\HttpException;

class InvalidSignatureException extends HttpException
{
    /**
     * Create a new exception instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct(403, 'Invalid signature.');
    }
}