Sets whether to catch exceptions when the kernel is handling a request.
public function catchExceptions(bool $catchExceptions) : void { $this->catchExceptions = $catchExceptions; }