using System; using System.Runtime.Serialization; namespace ICSharpCode.SharpZipLib { /// /// SharpZipBaseException is the base exception class for SharpZipLib. /// All library exceptions are derived from this. /// /// NOTE: Not all exceptions thrown will be derived from this class. /// A variety of other exceptions are possible for example [Serializable] public class SharpZipBaseException : Exception { /// /// Initializes a new instance of the SharpZipBaseException class. /// public SharpZipBaseException() { } /// /// Initializes a new instance of the SharpZipBaseException class with a specified error message. /// /// A message describing the exception. public SharpZipBaseException(string message) : base(message) { } /// /// Initializes a new instance of the SharpZipBaseException class with a specified /// error message and a reference to the inner exception that is the cause of this exception. /// /// A message describing the exception. /// The inner exception public SharpZipBaseException(string message, Exception innerException) : base(message, innerException) { } /// /// Initializes a new instance of the SharpZipBaseException 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 SharpZipBaseException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }