| 148 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/*
|
|
|
4 |
* This file is part of the Symfony package.
|
|
|
5 |
*
|
|
|
6 |
* (c) Fabien Potencier <fabien@symfony.com>
|
|
|
7 |
*
|
|
|
8 |
* For the full copyright and license information, please view the LICENSE
|
|
|
9 |
* file that was distributed with this source code.
|
|
|
10 |
*/
|
|
|
11 |
|
|
|
12 |
namespace Symfony\Component\HttpFoundation\Exception;
|
|
|
13 |
|
|
|
14 |
/**
|
|
|
15 |
* Raised when a session does not exist. This happens in the following cases:
|
|
|
16 |
* - the session is not enabled
|
|
|
17 |
* - attempt to read a session outside a request context (ie. cli script).
|
|
|
18 |
*
|
|
|
19 |
* @author Jérémy Derussé <jeremy@derusse.com>
|
|
|
20 |
*/
|
|
|
21 |
class SessionNotFoundException extends \LogicException implements RequestExceptionInterface
|
|
|
22 |
{
|
|
|
23 |
public function __construct(string $message = 'There is currently no session available.', int $code = 0, \Throwable $previous = null)
|
|
|
24 |
{
|
|
|
25 |
parent::__construct($message, $code, $previous);
|
|
|
26 |
}
|
|
|
27 |
}
|