error = $error; parent::__construct($message, $httpStatus, $uri, $previous); } public function getErrorCode(): string { return $this->error; } }