49 references to Format
System.Formats.Tar (49)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (6)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) : 134new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path), path) : 145new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 150new PathTooLongException(SR.Format(SR.IO_PathTooLong_Path, path)) : 155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno);
System\Formats\Tar\TarEntry.cs (6)
218throw new InvalidOperationException(SR.Format(SR.TarEntryTypeNotSupportedForExtracting, EntryType)); 253return Task.FromException(new InvalidOperationException(SR.Format(SR.TarEntryTypeNotSupportedForExtracting, EntryType))); 632throw new InvalidOperationException(SR.Format(SR.TarEntryTypeNotSupportedForExtracting, EntryType)); 643throw new IOException(SR.Format(SR.IO_PathNotFound_Path, filePath)); 654throw new IOException(SR.Format(SR.IO_AlreadyExists_Name, filePath)); 660throw new IOException(SR.Format(SR.IO_AlreadyExists_Name, filePath));
System\Formats\Tar\TarFile.cs (10)
70throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceDirectoryName), sourceDirectoryName); 138return Task.FromException(new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceDirectoryName), sourceDirectoryName)); 193throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceDirectoryName), sourceDirectoryName); 256return Task.FromException(new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceDirectoryName), sourceDirectoryName)); 312throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, destinationDirectoryName), destinationDirectoryName); 380return Task.FromException(new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, destinationDirectoryName), destinationDirectoryName)); 438throw new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, sourceFileName)); 443throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, destinationDirectoryName), destinationDirectoryName); 507return Task.FromException(new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, sourceFileName))); 512return Task.FromException(new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, destinationDirectoryName), destinationDirectoryName));
System\Formats\Tar\TarHeader.Read.cs (13)
317throw new InvalidDataException(SR.Format(SR.TarSizeFieldTooLargeForEntryType, _typeFlag)); 478TarEntryType.SparseFile => throw new NotSupportedException(SR.Format(SR.TarEntryTypeNotSupported, header._typeFlag)), 560throw new InvalidDataException(SR.Format(SR.TarPosixFormatExpected, _name)); 578throw new InvalidDataException(SR.Format(SR.TarGnuFormatExpected, _name)); 686throw new InvalidOperationException(SR.Format(SR.TarSizeFieldTooLargeForEntryType, _typeFlag.ToString())); 696throw new InvalidDataException(SR.Format(SR.TarDuplicateExtendedAttribute, name)); 825throw new InvalidDataException(SR.Format(SR.TarCompressionArchiveDetected, "7-Zip")); 832throw new InvalidDataException(SR.Format(SR.TarCompressionArchiveDetected, "ZIP")); 839throw new InvalidDataException(SR.Format(SR.TarCompressionArchiveDetected, "GZIP")); 846throw new InvalidDataException(SR.Format(SR.TarCompressionArchiveDetected, "BZIP2")); 855throw new InvalidDataException(SR.Format(SR.TarCompressionArchiveDetected, "XZ")); 863throw new InvalidDataException(SR.Format(SR.TarCompressionArchiveDetected, "Zstandard")); 883throw new InvalidDataException(SR.Format(SR.TarCompressionArchiveDetected, "ZLIB"));
System\Formats\Tar\TarHeader.Write.cs (8)
532throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.Name)), ArgNameEntry); 553throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.Name)), ArgNameEntry); 606throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.Name)), ArgNameEntry); 652throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.LinkName)), ArgNameEntry); 710throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(PaxTarEntry.UserName)), ArgNameEntry); 728throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(PaxTarEntry.GroupName)), ArgNameEntry); 1054throw new ArgumentException(SR.Format(SR.TarFieldTooLargeForEntryFormat, _format)); 1079throw new ArgumentException(SR.Format(SR.TarFieldTooLargeForEntryFormat, _format));
System\Formats\Tar\TarHelpers.cs (1)
379throw new InvalidDataException(SR.Format(SR.TarInvalidFormat, archiveFormat));
System\Formats\Tar\TarWriter.cs (3)
334throw new InvalidDataException(SR.Format(SR.TarInvalidFormat, Format)); 356_ => throw new InvalidDataException(SR.Format(SR.TarInvalidFormat, Format)), 403throw new IOException(SR.Format(SR.TarStreamSeekabilityUnsupportedCombination, entry.Name));
System\Formats\Tar\TarWriter.Unix.cs (2)
59_ => throw new IOException(SR.Format(SR.TarUnsupportedFile, fullPath)), 71_ => throw new InvalidDataException(SR.Format(SR.TarInvalidFormat, Format)),