using System; using System.Runtime.Serialization; namespace ICSharpCode.SharpZipLib.BZip2 { /// /// BZip2Exception represents exceptions specific to BZip2 classes and code. /// [Serializable] public class BZip2Exception : SharpZipBaseException { /// /// Initialise a new instance of . /// public BZip2Exception() { } /// /// Initialise a new instance of with its message string. /// /// A that describes the error. public BZip2Exception(string message) : base(message) { } /// /// Initialise a new instance of . /// /// A that describes the error. /// The that caused this exception. public BZip2Exception(string message, Exception innerException) : base(message, innerException) { } /// /// Initializes a new instance of the BZip2Exception class with serialized data. /// /// /// The System.Runtime.Serialization.SerializationInfo that holds the serialized /// object data about the exception being thrown. /// /// /// The System.Runtime.Serialization.StreamingContext that contains contextual information /// about the source or destination. /// protected BZip2Exception(SerializationInfo info, StreamingContext context) : base(info, context) { } } }