| | 1 | | using System; |
| | 2 | | using System.Runtime.Serialization; |
| | 3 | |
|
| | 4 | | namespace ICSharpCode.SharpZipLib.Tar |
| | 5 | | { |
| | 6 | | /// <summary> |
| | 7 | | /// This exception is used to indicate that there is a problem |
| | 8 | | /// with a TAR archive header. |
| | 9 | | /// </summary> |
| | 10 | | [Serializable] |
| | 11 | | public class InvalidHeaderException : TarException |
| | 12 | | { |
| | 13 | |
|
| | 14 | | /// <summary> |
| | 15 | | /// Deserialization constructor |
| | 16 | | /// </summary> |
| | 17 | | /// <param name="information"><see cref="SerializationInfo"/> for this constructor</param> |
| | 18 | | /// <param name="context"><see cref="StreamingContext"/> for this constructor</param> |
| | 19 | | protected InvalidHeaderException(SerializationInfo information, StreamingContext context) |
| 0 | 20 | | : base(information, context) |
| | 21 | |
|
| | 22 | | { |
| 0 | 23 | | } |
| | 24 | |
|
| | 25 | | /// <summary> |
| | 26 | | /// Initialise a new instance of the InvalidHeaderException class. |
| | 27 | | /// </summary> |
| 0 | 28 | | public InvalidHeaderException() |
| | 29 | | { |
| 0 | 30 | | } |
| | 31 | |
|
| | 32 | | /// <summary> |
| | 33 | | /// Initialises a new instance of the InvalidHeaderException class with a specified message. |
| | 34 | | /// </summary> |
| | 35 | | /// <param name="message">Message describing the exception cause.</param> |
| | 36 | | public InvalidHeaderException(string message) |
| 0 | 37 | | : base(message) |
| | 38 | | { |
| 0 | 39 | | } |
| | 40 | |
|
| | 41 | | /// <summary> |
| | 42 | | /// Initialise a new instance of InvalidHeaderException |
| | 43 | | /// </summary> |
| | 44 | | /// <param name="message">Message describing the problem.</param> |
| | 45 | | /// <param name="exception">The exception that is the cause of the current exception.</param> |
| | 46 | | public InvalidHeaderException(string message, Exception exception) |
| 0 | 47 | | : base(message, exception) |
| | 48 | | { |
| 0 | 49 | | } |
| | 50 | | } |
| | 51 | | } |