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