module = $module; $this->message = $exception->getMessage(); $this->code = $exception->getCode(); $this->file = $exception->getFile(); $this->line = $exception->getLine(); $this->trace = $exception->getTrace(); } public function getModule() : ?string { return $this->module; } public function getMessage() : ?string { return $this->message; } public function getCode() : ?string { return $this->code; } public function getFile() : ?string { return $this->file; } public function getLine() : ?string { return $this->line; } public function getTrace() : array { return $this->trace; } } ?>