156 references to SR
System.IO.Compression (156)
src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (7)
277ErrorCode.MemError => SR.ZLibErrorNotEnoughMemory, 280ErrorCode.VersionError => SR.ZLibErrorVersionMismatch, 283ErrorCode.StreamError => SR.ZLibErrorIncorrectInitParameters, 285_ => SR.Format(SR.ZLibErrorUnexpected, (int)zlibErrorCode) 307throw new ZLibException(SR.ZLibErrorDLLLoadError, e); 354throw new ZLibException(SR.ZLibErrorDLLLoadError, e);
System\IO\Compression\DeflateManaged\DeflateManagedStream.cs (11)
28throw new ArgumentException(SR.NotSupported_UnreadableStream, nameof(stream)); 63get { throw new NotSupportedException(SR.NotSupported); } 68get { throw new NotSupportedException(SR.NotSupported); } 69set { throw new NotSupportedException(SR.NotSupported); } 87throw new NotSupportedException(SR.NotSupported); 92throw new NotSupportedException(SR.NotSupported); 134throw new InvalidDataException(SR.GenericInvalidData); 221throw new InvalidDataException(SR.GenericInvalidData); 252throw new InvalidOperationException(SR.InvalidBeginCall); 264throw new InvalidOperationException(SR.InvalidBeginCall); 273throw new InvalidOperationException(SR.CannotWriteToDeflateStream);
System\IO\Compression\DeflateManaged\HuffmanTree.cs (4)
191throw new InvalidDataException(SR.InvalidHuffmanData); 233throw new InvalidDataException(SR.InvalidHuffmanData); 253throw new InvalidDataException(SR.InvalidHuffmanData); 304throw new InvalidDataException(SR.InvalidHuffmanData);
System\IO\Compression\DeflateManaged\InflaterManaged.cs (8)
212throw new InvalidDataException(SR.UnknownBlockType); 238throw new InvalidDataException(SR.UnknownBlockType); 297throw new InvalidDataException(SR.InvalidBlockLength); 330throw new InvalidDataException(SR.UnknownState); 393throw new InvalidDataException(SR.GenericInvalidData); 415throw new InvalidDataException(SR.GenericInvalidData); 473throw new InvalidDataException(SR.UnknownState); 665throw new InvalidDataException(SR.UnknownState);
System\IO\Compression\DeflateZLib\Deflater.cs (3)
179throw new ZLibException(SR.ZLibErrorDLLLoadError, cause); 192throw new ZLibException(SR.ZLibErrorInconsistentStream, "deflate", (int)errC, _zlibStream.GetErrorMessage()); 195throw new ZLibException(SR.ZLibErrorUnexpected, "deflate", (int)errC, _zlibStream.GetErrorMessage());
System\IO\Compression\DeflateZLib\DeflateStream.cs (15)
80throw new ArgumentException(SR.NotSupported_UnreadableStream, nameof(stream)); 93throw new ArgumentException(SR.ArgumentOutOfRange_Enum, nameof(mode)); 115throw new ArgumentException(SR.NotSupported_UnwritableStream, nameof(stream)); 195get { throw new NotSupportedException(SR.NotSupported); } 200get { throw new NotSupportedException(SR.NotSupported); } 201set { throw new NotSupportedException(SR.NotSupported); } 258throw new NotSupportedException(SR.NotSupported); 263throw new NotSupportedException(SR.NotSupported); 387throw new InvalidOperationException(SR.CannotReadFromDeflateStream); 396throw new InvalidOperationException(SR.CannotWriteToDeflateStream); 402throw new InvalidDataException(SR.GenericInvalidData); 405throw new InvalidDataException(SR.TruncatedData); 1032return Task.FromException(new InvalidDataException(SR.GenericInvalidData)); 1081throw new InvalidDataException(SR.GenericInvalidData); 1138throw new InvalidOperationException(SR.InvalidBeginCall);
System\IO\Compression\DeflateZLib\Inflater.cs (5)
259throw new ZLibException(SR.ZLibErrorDLLLoadError, cause); 271throw new ZLibException(SR.ZLibErrorNotEnoughMemory, "inflate_", (int)errC, _zlibStream.GetErrorMessage()); 274throw new InvalidDataException(SR.UnsupportedCompression); 277throw new ZLibException(SR.ZLibErrorInconsistentStream, "inflate_", (int)errC, _zlibStream.GetErrorMessage()); 280throw new ZLibException(SR.ZLibErrorUnexpected, "inflate_", (int)errC, _zlibStream.GetErrorMessage());
System\IO\Compression\GZipStream.cs (5)
55get { throw new NotSupportedException(SR.NotSupported); } 60get { throw new NotSupportedException(SR.NotSupported); } 61set { throw new NotSupportedException(SR.NotSupported); } 72throw new NotSupportedException(SR.NotSupported); 77throw new NotSupportedException(SR.NotSupported);
System\IO\Compression\PositionPreservingWriteOnlyStreamWrapper.cs (7)
30set { throw new NotSupportedException(SR.NotSupported); } 100get { throw new NotSupportedException(SR.NotSupported); } 105throw new NotSupportedException(SR.NotSupported); 110throw new NotSupportedException(SR.NotSupported); 113public override int Read(byte[] buffer, int offset, int count) => throw new NotSupportedException(SR.NotSupported); 115public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) => throw new NotSupportedException(SR.NotSupported); 117public override ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = default) => throw new NotSupportedException(SR.NotSupported);
System\IO\Compression\ZipArchive.Async.cs (6)
237throw new InvalidDataException(SR.CentralDirectoryInvalid, ex); 265throw new InvalidDataException(SR.EOCDNotFound); 278throw new InvalidDataException(SR.FieldTooBigOffsetToCD); 283throw new InvalidDataException(SR.CDCorrupt, ex); 287throw new InvalidDataException(SR.CDCorrupt, ex); 309throw new InvalidDataException(SR.Zip64EOCDNotWhereExpected);
System\IO\Compression\ZipArchive.cs (23)
233throw new NotSupportedException(SR.EntriesInCreateMode); 338throw new NotSupportedException(SR.EntriesInCreateMode); 374throw new ArgumentException(SR.EntryNameAndCommentEncodingNotSupported, nameof(EntryNameAndCommentEncoding)); 390throw new NotSupportedException(SR.CreateInReadMode); 415throw new IOException(SR.CreateModeCreateEntryWhileOpen); 515throw new InvalidDataException(SR.NumEntriesWrong); 539throw new InvalidDataException(SR.NumEntriesWrong); 586throw new InvalidDataException(SR.CentralDirectoryInvalid, ex); 597throw new InvalidDataException(SR.SplitSpanned); 603throw new InvalidDataException(SR.SplitSpanned); 627throw new InvalidDataException(SR.EOCDNotFound); 640throw new InvalidDataException(SR.FieldTooBigOffsetToCD); 645throw new InvalidDataException(SR.CDCorrupt, ex); 649throw new InvalidDataException(SR.CDCorrupt, ex); 656throw new InvalidDataException(SR.FieldTooBigOffsetToZip64EOCD); 661throw new InvalidDataException(SR.InvalidOffsetToZip64EOCD); 671throw new InvalidDataException(SR.FieldTooBigNumEntries); 674throw new InvalidDataException(SR.FieldTooBigOffsetToCD); 677throw new InvalidDataException(SR.SplitSpanned); 699throw new InvalidDataException(SR.Zip64EOCDNotWhereExpected); 906throw new ArgumentException(SR.CreateModeCapabilities); 910throw new ArgumentException(SR.ReadModeCapabilities); 918throw new ArgumentException(SR.UpdateModeCapabilities);
System\IO\Compression\ZipArchiveEntry.Async.cs (6)
65throw new ArgumentOutOfRangeException(nameof(access), SR.InvalidFileAccess); 72throw new InvalidOperationException(SR.CannotBeWrittenInReadMode); 77throw new InvalidOperationException(SR.CannotBeReadInCreateMode); 105throw new InvalidDataException(SR.LocalFileHeaderCorrupt); 266throw new IOException(SR.UpdateModeOneStream); 311message = SR.LocalFileHeaderCorrupt;
System\IO\Compression\ZipArchiveEntry.cs (29)
152throw new ArgumentException(SR.EntryNamesTooLong); 201throw new InvalidOperationException(SR.LengthAfterWrite); 297throw new NotSupportedException(SR.ReadOnlyArchive); 299throw new IOException(SR.FrozenAfterWrite); 301throw new ArgumentOutOfRangeException(nameof(value), SR.DateTimeOutOfRange); 317throw new InvalidOperationException(SR.LengthAfterWrite); 345throw new IOException(SR.DeleteOpenEntry); 348throw new NotSupportedException(SR.DeleteOnlyInUpdate); 404throw new ArgumentOutOfRangeException(nameof(access), SR.InvalidFileAccess); 411throw new InvalidOperationException(SR.CannotBeWrittenInReadMode); 416throw new InvalidOperationException(SR.CannotBeReadInCreateMode); 471throw new InvalidDataException(SR.LocalFileHeaderCorrupt); 851throw new IOException(SR.CreateModeWriteOnceAndOneEntryAtATime); 878throw new IOException(SR.UpdateModeOneStream); 919message = SR.LocalFileHeaderCorrupt; 945message = SR.UnsupportedCompression; 951message = SR.SplitSpanned; 956message = SR.LocalFileHeaderCorrupt; 969message = SR.LocalFileHeaderCorrupt; 982message = SR.EntryTooLarge; 1429throw new InvalidOperationException(SR.DeletedEntry); 1483throw new NotSupportedException(SR.SeekingNotSupported); 1496throw new NotSupportedException(SR.SeekingNotSupported); 1507throw new ObjectDisposedException(GetType().ToString(), SR.HiddenStreamName); 1513throw new NotSupportedException(SR.ReadingNotSupported); 1519throw new NotSupportedException(SR.ReadingNotSupported); 1525throw new NotSupportedException(SR.ReadingNotSupported); 1531throw new NotSupportedException(SR.SeekingNotSupported); 1537throw new NotSupportedException(SR.SetLengthRequiresSeekingAndWriting);
System\IO\Compression\ZipBlocks.Async.cs (2)
92throw new InvalidDataException(SR.Zip64EOCDNotWhereExpected); 250throw new InvalidDataException(SR.EOCDNotFound);
System\IO\Compression\ZipBlocks.cs (5)
313throw new InvalidDataException(SR.FieldTooBigUncompressedSize); 317throw new InvalidDataException(SR.FieldTooBigCompressedSize); 321throw new InvalidDataException(SR.FieldTooBigLocalHeaderOffset); 522throw new InvalidDataException(SR.Zip64EOCDNotWhereExpected); 967throw new InvalidDataException(SR.EOCDNotFound);
System\IO\Compression\ZipCustomStreams.cs (20)
72throw new ObjectDisposedException(GetType().ToString(), SR.HiddenStreamName); 78throw new NotSupportedException(SR.ReadingNotSupported); 84throw new NotSupportedException(SR.WritingNotSupported); 90throw new NotSupportedException(SR.SeekingNotSupported); 278throw new NotSupportedException(SR.SeekingNotSupported); 298throw new ObjectDisposedException(GetType().ToString(), SR.HiddenStreamName); 304throw new NotSupportedException(SR.ReadingNotSupported); 395throw new NotSupportedException(SR.SeekingNotSupported); 408throw new IOException(SR.IO_SeekBeforeBegin); 420throw new NotSupportedException(SR.SetLengthRequiresSeekingAndWriting); 426throw new NotSupportedException(SR.WritingNotSupported); 432throw new NotSupportedException(SR.WritingNotSupported); 499throw new NotSupportedException(SR.SeekingNotSupported); 513throw new NotSupportedException(SR.SeekingNotSupported); 526throw new ObjectDisposedException(GetType().ToString(), SR.HiddenStreamName); 532throw new NotSupportedException(SR.ReadingNotSupported); 538throw new NotSupportedException(SR.ReadingNotSupported); 544throw new NotSupportedException(SR.ReadingNotSupported); 550throw new NotSupportedException(SR.SeekingNotSupported); 556throw new NotSupportedException(SR.SetLengthRequiresSeekingAndWriting);