[ Index ]

PHP Cross Reference of phpBB-3.3.5-deutsch

title

Body

[close]

/vendor/symfony/http-kernel/Event/ -> GetResponseForExceptionEvent.php (summary)

(no description)

File Size: 90 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

GetResponseForExceptionEvent:: (5 methods):
  __construct()
  getException()
  setException()
  allowCustomResponseCode()
  isAllowingCustomResponseCode()


Class: GetResponseForExceptionEvent  - X-Ref

Allows to create a response for a thrown exception.

Call setResponse() to set the response that will be returned for the
current request. The propagation of this event is stopped as soon as a
response is set.

You can also call setException() to replace the thrown exception. This
exception will be thrown if no response is set during processing of this
event.

__construct(HttpKernelInterface $kernel, Request $request, $requestType, \Exception $e)   X-Ref


getException()   X-Ref
Returns the thrown exception.

return: \Exception The thrown exception

setException(\Exception $exception)   X-Ref
Replaces the thrown exception.

This exception will be thrown if no response is set in the event.

param: \Exception $exception The thrown exception

allowCustomResponseCode()   X-Ref
Mark the event as allowing a custom response code.


isAllowingCustomResponseCode()   X-Ref
Returns true if the event allows a custom response code.

return: bool



Generated: Mon Oct 4 17:42:11 2021 Cross-referenced by PHPXref 0.7.1