155 references to SR
System.IO.Compression (155)
System\IO\Compression\DeflateManaged\DeflateManagedStream.cs (11)
28
throw new ArgumentException(
SR
.NotSupported_UnreadableStream, nameof(stream));
63
get { throw new NotSupportedException(
SR
.NotSupported); }
68
get { throw new NotSupportedException(
SR
.NotSupported); }
69
set { throw new NotSupportedException(
SR
.NotSupported); }
87
throw new NotSupportedException(
SR
.NotSupported);
92
throw new NotSupportedException(
SR
.NotSupported);
134
throw new InvalidDataException(
SR
.GenericInvalidData);
221
throw new InvalidDataException(
SR
.GenericInvalidData);
252
throw new InvalidOperationException(
SR
.InvalidBeginCall);
264
throw new InvalidOperationException(
SR
.InvalidBeginCall);
273
throw new InvalidOperationException(
SR
.CannotWriteToDeflateStream);
System\IO\Compression\DeflateManaged\HuffmanTree.cs (4)
191
throw new InvalidDataException(
SR
.InvalidHuffmanData);
233
throw new InvalidDataException(
SR
.InvalidHuffmanData);
253
throw new InvalidDataException(
SR
.InvalidHuffmanData);
304
throw new InvalidDataException(
SR
.InvalidHuffmanData);
System\IO\Compression\DeflateManaged\InflaterManaged.cs (8)
212
throw new InvalidDataException(
SR
.UnknownBlockType);
238
throw new InvalidDataException(
SR
.UnknownBlockType);
297
throw new InvalidDataException(
SR
.InvalidBlockLength);
330
throw new InvalidDataException(
SR
.UnknownState);
393
throw new InvalidDataException(
SR
.GenericInvalidData);
415
throw new InvalidDataException(
SR
.GenericInvalidData);
473
throw new InvalidDataException(
SR
.UnknownState);
671
throw new InvalidDataException(
SR
.UnknownState);
System\IO\Compression\DeflateZLib\Deflater.cs (8)
42
throw new ZLibException(
SR
.ZLibErrorDLLLoadError, cause);
51
throw new ZLibException(
SR
.ZLibErrorNotEnoughMemory, "deflateInit2_", (int)errC, _zlibStream.GetErrorMessage());
54
throw new ZLibException(
SR
.ZLibErrorVersionMismatch, "deflateInit2_", (int)errC, _zlibStream.GetErrorMessage());
57
throw new ZLibException(
SR
.ZLibErrorIncorrectInitParameters, "deflateInit2_", (int)errC, _zlibStream.GetErrorMessage());
60
throw new ZLibException(
SR
.ZLibErrorUnexpected, "deflateInit2_", (int)errC, _zlibStream.GetErrorMessage());
201
throw new ZLibException(
SR
.ZLibErrorDLLLoadError, cause);
214
throw new ZLibException(
SR
.ZLibErrorInconsistentStream, "deflate", (int)errC, _zlibStream.GetErrorMessage());
217
throw new ZLibException(
SR
.ZLibErrorUnexpected, "deflate", (int)errC, _zlibStream.GetErrorMessage());
System\IO\Compression\DeflateZLib\DeflateStream.cs (15)
80
throw new ArgumentException(
SR
.NotSupported_UnreadableStream, nameof(stream));
93
throw new ArgumentException(
SR
.ArgumentOutOfRange_Enum, nameof(mode));
115
throw new ArgumentException(
SR
.NotSupported_UnwritableStream, nameof(stream));
188
get { throw new NotSupportedException(
SR
.NotSupported); }
193
get { throw new NotSupportedException(
SR
.NotSupported); }
194
set { throw new NotSupportedException(
SR
.NotSupported); }
251
throw new NotSupportedException(
SR
.NotSupported);
256
throw new NotSupportedException(
SR
.NotSupported);
373
throw new InvalidOperationException(
SR
.CannotReadFromDeflateStream);
382
throw new InvalidOperationException(
SR
.CannotWriteToDeflateStream);
388
throw new InvalidDataException(
SR
.GenericInvalidData);
391
throw new InvalidDataException(
SR
.TruncatedData);
1014
return Task.FromException(new InvalidDataException(
SR
.GenericInvalidData));
1063
throw new InvalidDataException(
SR
.GenericInvalidData);
1120
throw new InvalidOperationException(
SR
.InvalidBeginCall);
System\IO\Compression\DeflateZLib\Inflater.cs (10)
242
throw new ZLibException(
SR
.ZLibErrorDLLLoadError, exception);
251
throw new ZLibException(
SR
.ZLibErrorNotEnoughMemory, "inflateInit2_", (int)error, _zlibStream.GetErrorMessage());
254
throw new ZLibException(
SR
.ZLibErrorVersionMismatch, "inflateInit2_", (int)error, _zlibStream.GetErrorMessage());
257
throw new ZLibException(
SR
.ZLibErrorIncorrectInitParameters, "inflateInit2_", (int)error, _zlibStream.GetErrorMessage());
260
throw new ZLibException(
SR
.ZLibErrorUnexpected, "inflateInit2_", (int)error, _zlibStream.GetErrorMessage());
293
throw new ZLibException(
SR
.ZLibErrorDLLLoadError, cause);
305
throw new ZLibException(
SR
.ZLibErrorNotEnoughMemory, "inflate_", (int)errC, _zlibStream.GetErrorMessage());
308
throw new InvalidDataException(
SR
.UnsupportedCompression);
311
throw new ZLibException(
SR
.ZLibErrorInconsistentStream, "inflate_", (int)errC, _zlibStream.GetErrorMessage());
314
throw new ZLibException(
SR
.ZLibErrorUnexpected, "inflate_", (int)errC, _zlibStream.GetErrorMessage());
System\IO\Compression\GZipStream.cs (5)
55
get { throw new NotSupportedException(
SR
.NotSupported); }
60
get { throw new NotSupportedException(
SR
.NotSupported); }
61
set { throw new NotSupportedException(
SR
.NotSupported); }
72
throw new NotSupportedException(
SR
.NotSupported);
77
throw new NotSupportedException(
SR
.NotSupported);
System\IO\Compression\PositionPreservingWriteOnlyStreamWrapper.cs (7)
30
set { throw new NotSupportedException(
SR
.NotSupported); }
100
get { throw new NotSupportedException(
SR
.NotSupported); }
105
throw new NotSupportedException(
SR
.NotSupported);
110
throw new NotSupportedException(
SR
.NotSupported);
113
public override int Read(byte[] buffer, int offset, int count) => throw new NotSupportedException(
SR
.NotSupported);
115
public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) => throw new NotSupportedException(
SR
.NotSupported);
117
public override ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = default) => throw new NotSupportedException(
SR
.NotSupported);
System\IO\Compression\ZipArchive.Async.cs (6)
224
throw new InvalidDataException(
SR
.Format(
SR
.CentralDirectoryInvalid, ex));
248
throw new InvalidDataException(
SR
.EOCDNotFound);
259
throw new InvalidDataException(
SR
.FieldTooBigOffsetToCD);
264
throw new InvalidDataException(
SR
.CDCorrupt, ex);
268
throw new InvalidDataException(
SR
.CDCorrupt, ex);
System\IO\Compression\ZipArchive.cs (22)
230
throw new NotSupportedException(
SR
.EntriesInCreateMode);
335
throw new NotSupportedException(
SR
.EntriesInCreateMode);
371
throw new ArgumentException(
SR
.EntryNameAndCommentEncodingNotSupported, nameof(EntryNameAndCommentEncoding));
387
throw new NotSupportedException(
SR
.CreateInReadMode);
412
throw new IOException(
SR
.CreateModeCreateEntryWhileOpen);
516
throw new InvalidDataException(
SR
.NumEntriesWrong);
540
throw new InvalidDataException(
SR
.NumEntriesWrong);
586
throw new InvalidDataException(
SR
.Format(
SR
.CentralDirectoryInvalid, ex));
595
throw new InvalidDataException(
SR
.SplitSpanned);
601
throw new InvalidDataException(
SR
.SplitSpanned);
625
throw new InvalidDataException(
SR
.EOCDNotFound);
636
throw new InvalidDataException(
SR
.FieldTooBigOffsetToCD);
641
throw new InvalidDataException(
SR
.CDCorrupt, ex);
645
throw new InvalidDataException(
SR
.CDCorrupt, ex);
652
throw new InvalidDataException(
SR
.FieldTooBigOffsetToZip64EOCD);
664
throw new InvalidDataException(
SR
.FieldTooBigNumEntries);
667
throw new InvalidDataException(
SR
.FieldTooBigOffsetToCD);
670
throw new InvalidDataException(
SR
.SplitSpanned);
894
throw new ArgumentException(
SR
.CreateModeCapabilities);
898
throw new ArgumentException(
SR
.ReadModeCapabilities);
906
throw new ArgumentException(
SR
.UpdateModeCapabilities);
System\IO\Compression\ZipArchiveEntry.Async.cs (3)
49
throw new InvalidDataException(
SR
.LocalFileHeaderCorrupt);
210
throw new IOException(
SR
.UpdateModeOneStream);
246
message =
SR
.LocalFileHeaderCorrupt;
System\IO\Compression\ZipArchiveEntry.cs (28)
152
throw new ArgumentException(
SR
.EntryNamesTooLong);
185
throw new InvalidOperationException(
SR
.LengthAfterWrite);
281
throw new NotSupportedException(
SR
.ReadOnlyArchive);
283
throw new IOException(
SR
.FrozenAfterWrite);
285
throw new ArgumentOutOfRangeException(nameof(value),
SR
.DateTimeOutOfRange);
301
throw new InvalidOperationException(
SR
.LengthAfterWrite);
329
throw new IOException(
SR
.DeleteOpenEntry);
332
throw new NotSupportedException(
SR
.DeleteOnlyInUpdate);
401
throw new InvalidDataException(
SR
.LocalFileHeaderCorrupt);
784
throw new IOException(
SR
.CreateModeWriteOnceAndOneEntryAtATime);
806
throw new IOException(
SR
.UpdateModeOneStream);
838
message =
SR
.LocalFileHeaderCorrupt;
866
CompressionMethodValues.BZip2 or CompressionMethodValues.LZMA =>
SR
.Format(
SR
.UnsupportedCompressionMethod, CompressionMethod.ToString()),
867
_ =>
SR
.UnsupportedCompression,
874
message =
SR
.SplitSpanned;
879
message =
SR
.LocalFileHeaderCorrupt;
892
message =
SR
.LocalFileHeaderCorrupt;
905
message =
SR
.EntryTooLarge;
1353
throw new InvalidOperationException(
SR
.DeletedEntry);
1407
throw new NotSupportedException(
SR
.SeekingNotSupported);
1420
throw new NotSupportedException(
SR
.SeekingNotSupported);
1431
throw new ObjectDisposedException(GetType().ToString(),
SR
.HiddenStreamName);
1437
throw new NotSupportedException(
SR
.ReadingNotSupported);
1443
throw new NotSupportedException(
SR
.ReadingNotSupported);
1449
throw new NotSupportedException(
SR
.ReadingNotSupported);
1455
throw new NotSupportedException(
SR
.SeekingNotSupported);
1461
throw new NotSupportedException(
SR
.SetLengthRequiresSeekingAndWriting);
System\IO\Compression\ZipBlocks.Async.cs (2)
92
throw new InvalidDataException(
SR
.Zip64EOCDNotWhereExpected);
253
throw new InvalidDataException(
SR
.EOCDNotFound);
System\IO\Compression\ZipBlocks.cs (5)
313
throw new InvalidDataException(
SR
.FieldTooBigUncompressedSize);
317
throw new InvalidDataException(
SR
.FieldTooBigCompressedSize);
321
throw new InvalidDataException(
SR
.FieldTooBigLocalHeaderOffset);
522
throw new InvalidDataException(
SR
.Zip64EOCDNotWhereExpected);
967
throw new InvalidDataException(
SR
.EOCDNotFound);
System\IO\Compression\ZipCustomStreams.cs (19)
72
throw new ObjectDisposedException(GetType().ToString(),
SR
.HiddenStreamName);
78
throw new NotSupportedException(
SR
.ReadingNotSupported);
84
throw new NotSupportedException(
SR
.WritingNotSupported);
90
throw new NotSupportedException(
SR
.SeekingNotSupported);
262
throw new NotSupportedException(
SR
.SeekingNotSupported);
275
throw new ObjectDisposedException(GetType().ToString(),
SR
.HiddenStreamName);
281
throw new NotSupportedException(
SR
.ReadingNotSupported);
369
throw new NotSupportedException(
SR
.SeekingNotSupported);
375
throw new NotSupportedException(
SR
.SetLengthRequiresSeekingAndWriting);
381
throw new NotSupportedException(
SR
.WritingNotSupported);
387
throw new NotSupportedException(
SR
.WritingNotSupported);
453
throw new NotSupportedException(
SR
.SeekingNotSupported);
467
throw new NotSupportedException(
SR
.SeekingNotSupported);
480
throw new ObjectDisposedException(GetType().ToString(),
SR
.HiddenStreamName);
486
throw new NotSupportedException(
SR
.ReadingNotSupported);
492
throw new NotSupportedException(
SR
.ReadingNotSupported);
498
throw new NotSupportedException(
SR
.ReadingNotSupported);
504
throw new NotSupportedException(
SR
.SeekingNotSupported);
510
throw new NotSupportedException(
SR
.SetLengthRequiresSeekingAndWriting);
System\IO\Compression\ZipHelper.Async.cs (1)
24
throw new IOException(
SR
.UnexpectedEndOfStream);
System\IO\Compression\ZipHelper.cs (1)
43
throw new IOException(
SR
.UnexpectedEndOfStream);