error = $error; } /** * Get the error object. * * @return \Throwable * * @since 2.0.0 */ public function getError(): \Throwable { return $this->error; } /** * Set the error object. * * @param \Throwable $error The error object to set to the event. * * @return void * * @since 2.0.0 */ public function setError(\Throwable $error): void { $this->error = $error; } }