Documentation

CsrfException extends Exception
in package

Exception thrown when CSRF token validation fails

Used by CsrfProtection::requireValidToken() for invalid or expired tokens. HTTP status code: 403 Forbidden

Tags
author

BDELIVE - Groupe 8

version
1.0.0

Table of Contents

Methods

__construct()  : mixed

Methods

__construct()

public __construct([string $message = 'CSRF token validation failed' ][, int $code = 403 ][, Throwable|null $previous = null ]) : mixed
Parameters
$message : string = 'CSRF token validation failed'

Error message

$code : int = 403

HTTP status code (default: 403)

$previous : Throwable|null = null

Previous exception for chaining


        
On this page

Search results