| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using System;
- using System.Runtime.Serialization;
- using System.Net.ApiService.Compression.Exceptions;
- namespace System.Net.ApiService.Compression.BZip2
- {
- /// <summary>
- /// BZip2Exception represents exceptions specific to BZip2 classes and code.
- /// </summary>
- [Serializable]
- public class BZip2Exception : SharpZipBaseException
- {
- /// <summary>
- /// Initialise a new instance of <see cref="BZip2Exception" />.
- /// </summary>
- public BZip2Exception()
- {
- }
- /// <summary>
- /// Initialise a new instance of <see cref="BZip2Exception" /> with its message string.
- /// </summary>
- /// <param name="message">A <see cref="string"/> that describes the error.</param>
- public BZip2Exception(string message)
- : base(message)
- {
- }
- /// <summary>
- /// Initialise a new instance of <see cref="BZip2Exception" />.
- /// </summary>
- /// <param name="message">A <see cref="string"/> that describes the error.</param>
- /// <param name="innerException">The <see cref="Exception"/> that caused this exception.</param>
- public BZip2Exception(string message, Exception innerException)
- : base(message, innerException)
- {
- }
- /// <summary>
- /// Initializes a new instance of the BZip2Exception class with serialized data.
- /// </summary>
- /// <param name="info">
- /// The System.Runtime.Serialization.SerializationInfo that holds the serialized
- /// object data about the exception being thrown.
- /// </param>
- /// <param name="context">
- /// The System.Runtime.Serialization.StreamingContext that contains contextual information
- /// about the source or destination.
- /// </param>
- protected BZip2Exception(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
- }
- }
|