using System; using System.Runtime.Serialization; namespace ICSharpCode.SharpZipLib.Tar { /// /// This exception is used to indicate that there is a problem /// with a TAR archive header. /// [Serializable] public class InvalidHeaderException : TarException { /// /// Initialise a new instance of the InvalidHeaderException class. /// public InvalidHeaderException() { } /// /// Initialises a new instance of the InvalidHeaderException class with a specified message. /// /// Message describing the exception cause. public InvalidHeaderException(string message) : base(message) { } /// /// Initialise a new instance of InvalidHeaderException /// /// Message describing the problem. /// The exception that is the cause of the current exception. public InvalidHeaderException(string message, Exception exception) : base(message, exception) { } /// /// Initializes a new instance of the InvalidHeaderException 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 InvalidHeaderException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }