using System; using System.Runtime.Serialization; namespace ICSharpCode.SharpZipLib.Lzw { /// /// LzwException represents exceptions specific to LZW classes and code. /// [Serializable] public class LzwException : SharpZipBaseException { /// /// Initialise a new instance of . /// public LzwException() { } /// /// Initialise a new instance of with its message string. /// /// A that describes the error. public LzwException(string message) : base(message) { } /// /// Initialise a new instance of . /// /// A that describes the error. /// The that caused this exception. public LzwException(string message, Exception innerException) : base(message, innerException) { } /// /// Initializes a new instance of the LzwException 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 LzwException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }