FileTooLargeError constructor

FileTooLargeError(
  1. int sizeInBytes,
  2. int maxSizeBytes
)

Implementation

FileTooLargeError(this.sizeInBytes, this.maxSizeBytes) {
  message =
      'File content (${_formatFileSize(sizeInBytes)}) exceeds maximum allowed size '
      '(${_formatFileSize(maxSizeBytes)}). Use offset and limit parameters to read '
      'specific portions of the file, or search for specific content instead of '
      'reading the whole file.';
}