using System;
using System.Runtime.Serialization;
namespace ICSharpCode.SharpZipLib
{
///
/// Indicates that the input stream could not decoded due to known library incompability or missing features
///
[Serializable]
public class StreamUnsupportedException : StreamDecodingException
{
private const string GenericMessage = "Input stream is in a unsupported format";
///
/// Initializes a new instance of the StreamUnsupportedException with a generic message
///
public StreamUnsupportedException() : base(GenericMessage) { }
///
/// Initializes a new instance of the StreamUnsupportedException class with a specified error message.
///
/// A message describing the exception.
public StreamUnsupportedException(string message) : base(message) { }
///
/// Initializes a new instance of the StreamUnsupportedException 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 StreamUnsupportedException(string message, Exception innerException) : base(message, innerException) { }
///
/// Initializes a new instance of the StreamUnsupportedException 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 StreamUnsupportedException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}