             let result = getResult(withFilePath: filePath)
             completion?(result)
         } catch {
-            let errorMessage = "Could not export data to local file."
+            let errorMessage = errorMessageForFailedDataExport
             completion?(self.getResult(withErrorMessage: errorMessage))
         }
     }

    
    public private(set) var exportMethod = "File"
    
    private var fileNameGenerator: FileNameGenerator
    
    

            let result = getResult(withFilePath: filePath)
            completion?(result)
        } catch {
            let errorMessage = errorMessageForFailedDataExport
            completion?(self.getResult(withErrorMessage: errorMessage))
        }
    }
