/** * Set the event's error object * * @param \Throwable $error The new error to process * * @return void * * @since 4.0.0 */ public function setError(\Throwable $error) { $this->setArgument('subject', $error); }