143 references to SR
System.Formats.Tar (143)
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);
172
public override long Seek(long offset, SeekOrigin origin) => throw new NotSupportedException(
SR
.IO_NotSupported_UnseekableStream);
174
public override void SetLength(long value) => throw new NotSupportedException(
SR
.IO_NotSupported_UnseekableStream);
176
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)
38
throw new ArgumentException(
SR
.IO_NotSupported_UnwritableStream, nameof(destination));
43
throw new DirectoryNotFoundException(
SR
.Format(
SR
.IO_PathNotFound_Path, sourceDirectoryName));
77
return Task.FromException(new ArgumentException(
SR
.IO_NotSupported_UnwritableStream, nameof(destination)));
82
return Task.FromException(new DirectoryNotFoundException(
SR
.Format(
SR
.IO_PathNotFound_Path, sourceDirectoryName)));
112
throw new DirectoryNotFoundException(
SR
.Format(
SR
.IO_PathNotFound_Path, sourceDirectoryName));
148
return Task.FromException(new DirectoryNotFoundException(
SR
.Format(
SR
.IO_PathNotFound_Path, sourceDirectoryName)));
178
throw new ArgumentException(
SR
.IO_NotSupported_UnreadableStream, nameof(source));
183
throw new DirectoryNotFoundException(
SR
.Format(
SR
.IO_PathNotFound_Path, destinationDirectoryName));
223
return Task.FromException(new ArgumentException(
SR
.IO_NotSupported_UnreadableStream, nameof(source)));
228
return Task.FromException(new DirectoryNotFoundException(
SR
.Format(
SR
.IO_PathNotFound_Path, destinationDirectoryName)));
266
throw new FileNotFoundException(
SR
.Format(
SR
.IO_FileNotFound_FileName, sourceFileName));
271
throw new DirectoryNotFoundException(
SR
.Format(
SR
.IO_PathNotFound_Path, destinationDirectoryName));
313
return Task.FromException(new FileNotFoundException(
SR
.Format(
SR
.IO_FileNotFound_FileName, sourceFileName)));
318
return Task.FromException(new DirectoryNotFoundException(
SR
.Format(
SR
.IO_PathNotFound_Path, destinationDirectoryName)));
System\Formats\Tar\TarHeader.cs (4)
128
throw new ArgumentException(
SR
.Format(
SR
.TarExtAttrDisallowedKeyChar, kvp.Key, kvp.Key[index] == '\n' ? "\\n" : kvp.Key[index]));
132
throw new ArgumentException(
SR
.Format(
SR
.TarExtAttrDisallowedValueChar, kvp.Key, "\\n"));
System\Formats\Tar\TarHeader.Read.cs (16)
204
throw new InvalidDataException(
SR
.Format(
SR
.TarSizeFieldTooLargeForEntryType, _typeFlag));
266
throw new InvalidDataException(
SR
.Format(
SR
.TarSizeFieldTooLargeForEntryType, _typeFlag));
382
throw new InvalidDataException(
SR
.Format(
SR
.TarSizeFieldNegative));
416
TarEntryType.SparseFile => throw new NotSupportedException(
SR
.Format(
SR
.TarEntryTypeNotSupported, header._typeFlag)),
480
throw new InvalidDataException(
SR
.Format(
SR
.TarPosixFormatExpected, _name));
498
throw new InvalidDataException(
SR
.Format(
SR
.TarGnuFormatExpected, _name));
617
throw new InvalidOperationException(
SR
.Format(
SR
.TarSizeFieldTooLargeForEntryType, _typeFlag.ToString()));
629
throw new InvalidDataException(
SR
.Format(
SR
.TarDuplicateExtendedAttribute, name));
System\Formats\Tar\TarHeader.Write.cs (16)
531
throw new ArgumentException(
SR
.Format(
SR
.TarEntryFieldExceedsMaxLength, nameof(TarEntry.Name)), ArgNameEntry);
552
throw new ArgumentException(
SR
.Format(
SR
.TarEntryFieldExceedsMaxLength, nameof(TarEntry.Name)), ArgNameEntry);
605
throw new ArgumentException(
SR
.Format(
SR
.TarEntryFieldExceedsMaxLength, nameof(TarEntry.Name)), ArgNameEntry);
651
throw new ArgumentException(
SR
.Format(
SR
.TarEntryFieldExceedsMaxLength, nameof(TarEntry.LinkName)), ArgNameEntry);
709
throw new ArgumentException(
SR
.Format(
SR
.TarEntryFieldExceedsMaxLength, nameof(PaxTarEntry.UserName)), ArgNameEntry);
727
throw new ArgumentException(
SR
.Format(
SR
.TarEntryFieldExceedsMaxLength, nameof(PaxTarEntry.GroupName)), ArgNameEntry);
1085
throw new ArgumentException(
SR
.Format(
SR
.TarFieldTooLargeForEntryFormat, _format));
1110
throw new ArgumentException(
SR
.Format(
SR
.TarFieldTooLargeForEntryFormat, _format));
System\Formats\Tar\TarHelpers.cs (6)
269
throw new InvalidDataException(
SR
.Format(
SR
.TarInvalidNumber));
406
throw new InvalidDataException(
SR
.Format(
SR
.TarInvalidFormat, archiveFormat));
409
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));
414
throw new InvalidDataException(
SR
.Format(
SR
.TarUnexpectedMetadataEntry, actualHeader._typeFlag, TarEntryType.ExtendedAttributes));
446
throw new InvalidDataException(
SR
.Format(
SR
.TarUnexpectedMetadataEntry, actualHeader._typeFlag, TarEntryType.ExtendedAttributes));
452
throw new InvalidDataException(
SR
.Format(
SR
.TarUnexpectedMetadataEntry, TarEntryType.ExtendedAttributes, TarEntryType.ExtendedAttributes));
481
throw new InvalidDataException(
SR
.Format(
SR
.TarUnexpectedMetadataEntry, secondHeader._typeFlag, header._typeFlag));
499
throw new InvalidDataException(
SR
.Format(
SR
.TarUnexpectedMetadataEntry, thirdHeader._typeFlag, secondHeader._typeFlag));
556
throw new InvalidDataException(
SR
.Format(
SR
.TarUnexpectedMetadataEntry, secondHeader._typeFlag, header._typeFlag));
575
throw new InvalidDataException(
SR
.Format(
SR
.TarUnexpectedMetadataEntry, thirdHeader._typeFlag, secondHeader._typeFlag));
System\Formats\Tar\TarWriter.cs (8)
65
throw new ArgumentException(
SR
.IO_NotSupported_UnwritableStream);
311
throw new InvalidDataException(
SR
.Format(
SR
.TarInvalidFormat, Format));
333
_ => throw new InvalidDataException(
SR
.Format(
SR
.TarInvalidFormat, Format)),
383
throw new IOException(
SR
.Format(
SR
.TarStreamSeekabilityUnsupportedCombination, entry.Name));
393
throw new ArgumentException(
SR
.TarEntryHardLinkOrSymlinkLinkNameEmpty, "entry");
System\Formats\Tar\TarWriter.Unix.cs (4)
38
_ => throw new IOException(
SR
.Format(
SR
.TarUnsupportedFile, fullPath)),
49
_ => throw new InvalidDataException(
SR
.Format(
SR
.TarInvalidFormat, Format)),