class SessionNotFoundException
Raised when a session does not exist. This happens in the following cases:
- the session is not enabled
- attempt to read a session outside a request context (ie. cli script).
@author Jérémy Derussé <jeremy@derusse.com>
Hierarchy
- class \Symfony\Component\HttpFoundation\Exception\LogicException extends \Symfony\Component\HttpFoundation\Exception\LogicException implements \Symfony\Component\HttpFoundation\Exception\ExceptionInterface
- class \Symfony\Component\HttpFoundation\Exception\LogicException extends \Symfony\Component\HttpFoundation\Exception\LogicException implements \Symfony\Component\HttpFoundation\Exception\ExceptionInterface
- class \Symfony\Component\HttpFoundation\Exception\SessionNotFoundException extends \Symfony\Component\HttpFoundation\Exception\LogicException implements \Symfony\Component\HttpFoundation\Exception\RequestExceptionInterface
- class \Symfony\Component\HttpFoundation\Exception\LogicException extends \Symfony\Component\HttpFoundation\Exception\LogicException implements \Symfony\Component\HttpFoundation\Exception\ExceptionInterface
Expanded class hierarchy of SessionNotFoundException
2 files declare their use of SessionNotFoundException
- Request.php in vendor/
symfony/ http-foundation/ Request.php - RequestStack.php in vendor/
symfony/ http-foundation/ RequestStack.php
File
-
vendor/
symfony/ http-foundation/ Exception/ SessionNotFoundException.php, line 21
Namespace
Symfony\Component\HttpFoundation\ExceptionView source
class SessionNotFoundException extends \LogicException implements RequestExceptionInterface {
public function __construct(string $message = 'There is currently no session available.', int $code = 0, ?\Throwable $previous = null) {
parent::__construct($message, $code, $previous);
}
}