Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ExceptionEvent.php

function ExceptionEvent::setThrowable

Replaces the thrown exception.

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

1 call to ExceptionEvent::setThrowable()
ExceptionEvent::__construct in vendor/symfony/http-kernel/Event/ExceptionEvent.php

File

vendor/symfony/http-kernel/Event/ExceptionEvent.php, line 57

Class

ExceptionEvent
Allows to create a response for a thrown exception.

Namespace

Symfony\Component\HttpKernel\Event

Code

public function setThrowable(\Throwable $exception) : void {
    $this->throwable = $exception;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal