135 references to SR
System.IO.Compression (135)
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 (3)
191throw new InvalidDataException(SR.InvalidHuffmanData); 233throw new InvalidDataException(SR.InvalidHuffmanData); 298throw 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); 671throw new InvalidDataException(SR.UnknownState);
System\IO\Compression\DeflateZLib\Deflater.cs (8)
42throw new ZLibException(SR.ZLibErrorDLLLoadError, cause); 51throw new ZLibException(SR.ZLibErrorNotEnoughMemory, "deflateInit2_", (int)errC, _zlibStream.GetErrorMessage()); 54throw new ZLibException(SR.ZLibErrorVersionMismatch, "deflateInit2_", (int)errC, _zlibStream.GetErrorMessage()); 57throw new ZLibException(SR.ZLibErrorIncorrectInitParameters, "deflateInit2_", (int)errC, _zlibStream.GetErrorMessage()); 60throw new ZLibException(SR.ZLibErrorUnexpected, "deflateInit2_", (int)errC, _zlibStream.GetErrorMessage()); 201throw new ZLibException(SR.ZLibErrorDLLLoadError, cause); 214throw new ZLibException(SR.ZLibErrorInconsistentStream, "deflate", (int)errC, _zlibStream.GetErrorMessage()); 217throw 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)); 188get { throw new NotSupportedException(SR.NotSupported); } 193get { throw new NotSupportedException(SR.NotSupported); } 194set { throw new NotSupportedException(SR.NotSupported); } 251throw new NotSupportedException(SR.NotSupported); 256throw new NotSupportedException(SR.NotSupported); 373throw new InvalidOperationException(SR.CannotReadFromDeflateStream); 382throw new InvalidOperationException(SR.CannotWriteToDeflateStream); 388throw new InvalidDataException(SR.GenericInvalidData); 391throw new InvalidDataException(SR.TruncatedData); 1014return Task.FromException(new InvalidDataException(SR.GenericInvalidData)); 1063throw new InvalidDataException(SR.GenericInvalidData); 1120throw new InvalidOperationException(SR.InvalidBeginCall);
System\IO\Compression\DeflateZLib\Inflater.cs (10)
249throw new ZLibException(SR.ZLibErrorDLLLoadError, exception); 258throw new ZLibException(SR.ZLibErrorNotEnoughMemory, "inflateInit2_", (int)error, _zlibStream.GetErrorMessage()); 261throw new ZLibException(SR.ZLibErrorVersionMismatch, "inflateInit2_", (int)error, _zlibStream.GetErrorMessage()); 264throw new ZLibException(SR.ZLibErrorIncorrectInitParameters, "inflateInit2_", (int)error, _zlibStream.GetErrorMessage()); 267throw new ZLibException(SR.ZLibErrorUnexpected, "inflateInit2_", (int)error, _zlibStream.GetErrorMessage()); 300throw new ZLibException(SR.ZLibErrorDLLLoadError, cause); 312throw new ZLibException(SR.ZLibErrorNotEnoughMemory, "inflate_", (int)errC, _zlibStream.GetErrorMessage()); 315throw new InvalidDataException(SR.UnsupportedCompression); 318throw new ZLibException(SR.ZLibErrorInconsistentStream, "inflate_", (int)errC, _zlibStream.GetErrorMessage()); 321throw 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 (5)
30set { throw new NotSupportedException(SR.NotSupported); } 98get { throw new NotSupportedException(SR.NotSupported); } 103throw new NotSupportedException(SR.NotSupported); 108throw new NotSupportedException(SR.NotSupported); 113throw new NotSupportedException(SR.NotSupported);
System\IO\Compression\ZipArchive.cs (22)
136throw new ArgumentException(SR.CreateModeCapabilities); 140throw new ArgumentException(SR.ReadModeCapabilities); 151throw new ArgumentException(SR.UpdateModeCapabilities); 238throw new NotSupportedException(SR.EntriesInCreateMode); 347throw new NotSupportedException(SR.EntriesInCreateMode); 385throw new ArgumentException(SR.EntryNameAndCommentEncodingNotSupported, nameof(EntryNameAndCommentEncoding)); 397throw new NotSupportedException(SR.CreateInReadMode); 422throw new IOException(SR.CreateModeCreateEntryWhileOpen); 506throw new InvalidDataException(SR.NumEntriesWrong); 510throw new InvalidDataException(SR.Format(SR.CentralDirectoryInvalid, ex)); 531throw new InvalidDataException(SR.EOCDNotFound); 542throw new InvalidDataException(SR.SplitSpanned); 548throw new InvalidDataException(SR.SplitSpanned); 558throw new InvalidDataException(SR.FieldTooBigOffsetToCD); 563throw new InvalidDataException(SR.CDCorrupt, ex); 567throw new InvalidDataException(SR.CDCorrupt, ex); 601throw new InvalidDataException(SR.FieldTooBigOffsetToZip64EOCD); 611throw new InvalidDataException(SR.Zip64EOCDNotWhereExpected); 616throw new InvalidDataException(SR.FieldTooBigNumEntries); 619throw new InvalidDataException(SR.FieldTooBigOffsetToCD); 622throw new InvalidDataException(SR.SplitSpanned);
System\IO\Compression\ZipArchiveEntry.cs (26)
144throw new ArgumentException(SR.EntryNamesTooLong); 175throw new InvalidOperationException(SR.LengthAfterWrite); 269throw new NotSupportedException(SR.ReadOnlyArchive); 271throw new IOException(SR.FrozenAfterWrite); 273throw new ArgumentOutOfRangeException(nameof(value), SR.DateTimeOutOfRange); 288throw new InvalidOperationException(SR.LengthAfterWrite); 310throw new IOException(SR.DeleteOpenEntry); 313throw new NotSupportedException(SR.DeleteOnlyInUpdate); 385throw new InvalidDataException(SR.LocalFileHeaderCorrupt); 705throw new IOException(SR.CreateModeWriteOnceAndOneEntryAtATime); 726throw new IOException(SR.UpdateModeOneStream); 760message = SR.Format(SR.UnsupportedCompressionMethod, CompressionMethod.ToString()); 763message = SR.UnsupportedCompression; 771message = SR.SplitSpanned; 776message = SR.LocalFileHeaderCorrupt; 783message = SR.LocalFileHeaderCorrupt; 789message = SR.LocalFileHeaderCorrupt; 802message = SR.EntryTooLarge; 1147throw new InvalidOperationException(SR.DeletedEntry); 1201throw new NotSupportedException(SR.SeekingNotSupported); 1214throw new NotSupportedException(SR.SeekingNotSupported); 1225throw new ObjectDisposedException(GetType().ToString(), SR.HiddenStreamName); 1231throw new NotSupportedException(SR.ReadingNotSupported); 1237throw new NotSupportedException(SR.SeekingNotSupported); 1243throw new NotSupportedException(SR.SetLengthRequiresSeekingAndWriting);
System\IO\Compression\ZipBlocks.cs (3)
253if (zip64Block._uncompressedSize < 0) throw new InvalidDataException(SR.FieldTooBigUncompressedSize); 254if (zip64Block._compressedSize < 0) throw new InvalidDataException(SR.FieldTooBigCompressedSize); 255if (zip64Block._localHeaderOffset < 0) throw new InvalidDataException(SR.FieldTooBigLocalHeaderOffset);
System\IO\Compression\ZipCustomStreams.cs (17)
72throw new ObjectDisposedException(GetType().ToString(), SR.HiddenStreamName); 78throw new NotSupportedException(SR.ReadingNotSupported); 84throw new NotSupportedException(SR.WritingNotSupported); 90throw new NotSupportedException(SR.SeekingNotSupported); 262throw new NotSupportedException(SR.SeekingNotSupported); 275throw new ObjectDisposedException(GetType().ToString(), SR.HiddenStreamName); 281throw new NotSupportedException(SR.ReadingNotSupported); 369throw new NotSupportedException(SR.SeekingNotSupported); 375throw new NotSupportedException(SR.SetLengthRequiresSeekingAndWriting); 381throw new NotSupportedException(SR.WritingNotSupported); 387throw new NotSupportedException(SR.WritingNotSupported); 453throw new NotSupportedException(SR.SeekingNotSupported); 467throw new NotSupportedException(SR.SeekingNotSupported); 480throw new ObjectDisposedException(GetType().ToString(), SR.HiddenStreamName); 486throw new NotSupportedException(SR.ReadingNotSupported); 492throw new NotSupportedException(SR.SeekingNotSupported); 498throw new NotSupportedException(SR.SetLengthRequiresSeekingAndWriting);
System\IO\Compression\ZipHelper.cs (2)
44throw new IOException(SR.UnexpectedEndOfStream); 165throw new IOException(SR.UnexpectedEndOfStream);