| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System.ComponentModel; |
| | | 5 | | using System.Runtime.Serialization; |
| | | 6 | | |
| | | 7 | | namespace System.Net.Http.HPack |
| | | 8 | | { |
| | | 9 | | // TODO: Should this be public? |
| | | 10 | | [Serializable] |
| | | 11 | | internal sealed class HuffmanDecodingException : Exception, ISerializable |
| | | 12 | | { |
| | | 13 | | public HuffmanDecodingException() |
| | | 14 | | { |
| | | 15 | | } |
| | | 16 | | |
| | | 17 | | public HuffmanDecodingException(string message) |
| | 0 | 18 | | : base(message) |
| | 0 | 19 | | { |
| | 0 | 20 | | } |
| | | 21 | | |
| | | 22 | | [Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlForma |
| | | 23 | | private HuffmanDecodingException(SerializationInfo info, StreamingContext context) |
| | 0 | 24 | | : base(info, context) |
| | 0 | 25 | | { |
| | 0 | 26 | | } |
| | | 27 | | |
| | | 28 | | [Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlForma |
| | | 29 | | void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext) |
| | 0 | 30 | | { |
| | 0 | 31 | | base.GetObjectData(serializationInfo, streamingContext); |
| | 0 | 32 | | } |
| | | 33 | | |
| | | 34 | | [Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlForma |
| | | 35 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| | | 36 | | public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext) |
| | 0 | 37 | | { |
| | 0 | 38 | | base.GetObjectData(serializationInfo, streamingContext); |
| | 0 | 39 | | } |
| | | 40 | | } |
| | | 41 | | } |