2011-03-21 20:18:07 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace DSDecmp
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An exception thrown by the compression or decompression function, indicating that the
|
|
|
|
|
/// given input length was too large for the given input stream.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class StreamTooShortException : EndOfStreamException
|
|
|
|
|
{
|
2011-11-13 17:14:45 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates a new exception that indicates that the stream was shorter than the given input length.
|
|
|
|
|
/// </summary>
|
2011-03-21 20:18:07 +01:00
|
|
|
|
public StreamTooShortException()
|
|
|
|
|
: base("The end of the stream was reached "
|
|
|
|
|
+ "before the given amout of data was read.")
|
|
|
|
|
{ }
|
|
|
|
|
}
|
|
|
|
|
}
|