157 references to SR
System.Formats.Tar (157)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (18)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) : 127new FileNotFoundException(SR.IO_FileNotFound); 133new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path)) : 134new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName); 141new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 142new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner); 146new PathTooLongException(SR.Format(SR.IO_PathTooLong_Path, path)) : 147new PathTooLongException(SR.IO_PathTooLong); 151new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 152new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig); 163return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno);
System\Formats\Tar\PosixTarEntry.cs (2)
61throw new InvalidOperationException(SR.TarEntryBlockOrCharacterExpected); 87throw new InvalidOperationException(SR.TarEntryBlockOrCharacterExpected);
System\Formats\Tar\SeekableSubReadStream.cs (2)
21throw new ArgumentException(SR.IO_NotSupported_UnseekableStream, nameof(superStream)); 95throw new IOException(SR.IO_SeekBeforeBegin);
System\Formats\Tar\SubReadStream.cs (5)
28throw new ArgumentException(SR.IO_NotSupported_UnreadableStream, nameof(superStream)); 57throw new InvalidOperationException(SR.IO_NotSupported_UnseekableStream); 164public override long Seek(long offset, SeekOrigin origin) => throw new NotSupportedException(SR.IO_NotSupported_UnseekableStream); 166public override void SetLength(long value) => throw new NotSupportedException(SR.IO_NotSupported_UnseekableStream); 168public override void Write(byte[] buffer, int offset, int count) => throw new NotSupportedException(SR.IO_NotSupported_UnwritableStream);
System\Formats\Tar\TarEntry.cs (23)
57throw new ArgumentException(SR.TarCannotConvertPaxGlobalExtendedAttributesEntry, nameof(other)); 131throw new InvalidOperationException(SR.TarEntryHardLinkOrSymLinkExpected); 205throw new InvalidOperationException(SR.Format(SR.TarEntryTypeNotSupportedForExtracting, EntryType)); 239return Task.FromException(new InvalidOperationException(SR.Format(SR.TarEntryTypeNotSupportedForExtracting, EntryType))); 260throw new InvalidOperationException(SR.Format(SR.TarEntryDoesNotSupportDataStream, Name, EntryType)); 265throw new ArgumentException(SR.IO_NotSupported_UnreadableStream, nameof(value)); 356throw new IOException(SR.Format(SR.TarExtractingResultsFileOutside, name, destinationDirectoryPath)); 370throw new IOException(SR.Format(SR.TarExtractingResultsLinkOutside, linkName, destinationDirectoryPath)); 385throw new IOException(SR.Format(SR.TarExtractingResultsLinkOutside, linkName, destinationDirectoryPath)); 498throw new InvalidOperationException(SR.Format(SR.TarEntryTypeNotSupportedForExtracting, EntryType)); 509throw new IOException(SR.Format(SR.IO_PathNotFound_Path, filePath)); 520throw new IOException(SR.Format(SR.IO_AlreadyExists_Name, filePath)); 526throw new IOException(SR.Format(SR.IO_AlreadyExists_Name, filePath));
System\Formats\Tar\TarFile.cs (24)
45throw new ArgumentException(SR.IO_NotSupported_UnwritableStream, nameof(destination)); 50throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceDirectoryName)); 91return Task.FromException(new ArgumentException(SR.IO_NotSupported_UnwritableStream, nameof(destination))); 96return Task.FromException(new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceDirectoryName))); 133throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceDirectoryName)); 176return Task.FromException(new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, sourceDirectoryName))); 206throw new ArgumentException(SR.IO_NotSupported_UnreadableStream, nameof(source)); 211throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, destinationDirectoryName)); 251return Task.FromException(new ArgumentException(SR.IO_NotSupported_UnreadableStream, nameof(source))); 256return Task.FromException(new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, destinationDirectoryName))); 294throw new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, sourceFileName)); 299throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, destinationDirectoryName)); 341return Task.FromException(new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, sourceFileName))); 346return Task.FromException(new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, destinationDirectoryName)));
System\Formats\Tar\TarHeader.cs (4)
124throw new ArgumentException(SR.Format(SR.TarExtAttrDisallowedKeyChar, kvp.Key, kvp.Key[index] == '\n' ? "\\n" : kvp.Key[index])); 128throw new ArgumentException(SR.Format(SR.TarExtAttrDisallowedValueChar, kvp.Key, "\\n"));
System\Formats\Tar\TarHeader.Read.cs (31)
210throw new InvalidDataException(SR.Format(SR.TarSizeFieldTooLargeForEntryType, _typeFlag)); 272throw new InvalidDataException(SR.Format(SR.TarSizeFieldTooLargeForEntryType, _typeFlag)); 402throw new InvalidDataException(SR.TarInvalidChecksum); 408throw new InvalidDataException(SR.TarSizeFieldNegative); 442TarEntryType.SparseFile => throw new NotSupportedException(SR.Format(SR.TarEntryTypeNotSupported, header._typeFlag)), 524throw new InvalidDataException(SR.Format(SR.TarPosixFormatExpected, _name)); 542throw new InvalidDataException(SR.Format(SR.TarGnuFormatExpected, _name)); 672throw new InvalidOperationException(SR.Format(SR.TarSizeFieldTooLargeForEntryType, _typeFlag.ToString())); 682throw new InvalidDataException(SR.Format(SR.TarDuplicateExtendedAttribute, name)); 688throw new InvalidDataException(SR.ExtHeaderInvalidRecords); 834throw new InvalidDataException(SR.Format(SR.TarCompressionArchiveDetected, "7-Zip")); 841throw new InvalidDataException(SR.Format(SR.TarCompressionArchiveDetected, "ZIP")); 848throw new InvalidDataException(SR.Format(SR.TarCompressionArchiveDetected, "GZIP")); 855throw new InvalidDataException(SR.Format(SR.TarCompressionArchiveDetected, "BZIP2")); 864throw new InvalidDataException(SR.Format(SR.TarCompressionArchiveDetected, "XZ")); 872throw new InvalidDataException(SR.Format(SR.TarCompressionArchiveDetected, "Zstandard")); 892throw new InvalidDataException(SR.Format(SR.TarCompressionArchiveDetected, "ZLIB"));
System\Formats\Tar\TarHeader.Write.cs (16)
566throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.Name)), ArgNameEntry); 587throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.Name)), ArgNameEntry); 640throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.Name)), ArgNameEntry); 686throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.LinkName)), ArgNameEntry); 744throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(PaxTarEntry.UserName)), ArgNameEntry); 762throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(PaxTarEntry.GroupName)), ArgNameEntry); 1151throw new ArgumentException(SR.Format(SR.TarFieldTooLargeForEntryFormat, _format)); 1176throw new ArgumentException(SR.Format(SR.TarFieldTooLargeForEntryFormat, _format));
System\Formats\Tar\TarHelpers.cs (5)
274throw new InvalidDataException(SR.TarInvalidNumber); 390throw new InvalidDataException(SR.Format(SR.TarInvalidFormat, archiveFormat)); 393throw new ArgumentException(SR.Format(SR.TarEntryTypeNotSupportedInFormat, entryType, archiveFormat), paramName);
System\Formats\Tar\TarReader.cs (15)
39throw new ArgumentException(SR.IO_NotSupported_UnreadableStream, nameof(archiveStream)); 396throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, actualHeader._typeFlag, TarEntryType.ExtendedAttributes)); 428throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, actualHeader._typeFlag, TarEntryType.ExtendedAttributes)); 434throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, TarEntryType.ExtendedAttributes, TarEntryType.ExtendedAttributes)); 463throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, secondHeader._typeFlag, header._typeFlag)); 481throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, thirdHeader._typeFlag, secondHeader._typeFlag)); 538throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, secondHeader._typeFlag, header._typeFlag)); 557throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, thirdHeader._typeFlag, secondHeader._typeFlag));
System\Formats\Tar\TarWriter.cs (8)
68throw new ArgumentException(SR.IO_NotSupported_UnwritableStream); 326throw new InvalidDataException(SR.Format(SR.TarInvalidFormat, Format)); 348_ => throw new InvalidDataException(SR.Format(SR.TarInvalidFormat, Format)), 398throw new IOException(SR.Format(SR.TarStreamSeekabilityUnsupportedCombination, entry.Name)); 408throw new ArgumentException(SR.TarEntryHardLinkOrSymlinkLinkNameEmpty, "entry");
System\Formats\Tar\TarWriter.Unix.cs (4)
36_ => throw new IOException(SR.Format(SR.TarUnsupportedFile, fullPath)), 47_ => throw new InvalidDataException(SR.Format(SR.TarInvalidFormat, Format)),