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