root / trunk / hammock / src / net35 / ICSharpCode.SharpZipLib.Silverlight / BZip2 / BZip2Exception.cs @ 0eea575a
History | View | Annotate | Download (3.1 kB)
1 |
// BZip2.cs |
---|---|
2 |
// |
3 |
// Copyright 2004 John Reilly |
4 |
// |
5 |
// This program is free software; you can redistribute it and/or |
6 |
// modify it under the terms of the GNU General Public License |
7 |
// as published by the Free Software Foundation; either version 2 |
8 |
// of the License, or (at your option) any later version. |
9 |
// |
10 |
// This program is distributed in the hope that it will be useful, |
11 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
// GNU General Public License for more details. |
14 |
// |
15 |
// You should have received a copy of the GNU General Public License |
16 |
// along with this program; if not, write to the Free Software |
17 |
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 |
// |
19 |
// Linking this library statically or dynamically with other modules is |
20 |
// making a combined work based on this library. Thus, the terms and |
21 |
// conditions of the GNU General Public License cover the whole |
22 |
// combination. |
23 |
// |
24 |
// As a special exception, the copyright holders of this library give you |
25 |
// permission to link this library with independent modules to produce an |
26 |
// executable, regardless of the license terms of these independent |
27 |
// modules, and to copy and distribute the resulting executable under |
28 |
// terms of your choice, provided that you also meet, for each linked |
29 |
// independent module, the terms and conditions of the license of that |
30 |
// module. An independent module is a module which is not derived from |
31 |
// or based on this library. If you modify this library, you may extend |
32 |
// this exception to your version of the library, but you are not |
33 |
// obligated to do so. If you do not wish to do so, delete this |
34 |
// exception statement from your version. |
35 |
|
36 |
using System; |
37 |
using ICSharpCode.SharpZipLib.Silverlight.Serialization; |
38 |
|
39 |
namespace ICSharpCode.SharpZipLib.Silverlight.BZip2 |
40 |
{ |
41 |
/// <summary> |
42 |
/// BZip2Exception represents exceptions specific to Bzip2 algorithm |
43 |
/// </summary> |
44 |
[Serializable] |
45 |
public class BZip2Exception : SharpZipBaseException |
46 |
{ |
47 |
/// <summary> |
48 |
/// Deserialization constructor |
49 |
/// </summary> |
50 |
/// <param name="info"><see cref="System.Runtime.Serialization.SerializationInfo"/> for this constructor</param> |
51 |
protected BZip2Exception(SerializationInfo info) : base(info) |
52 |
{ |
53 |
} |
54 |
|
55 |
/// <summary> |
56 |
/// Initialise a new instance of BZip2Exception |
57 |
/// </summary> |
58 |
public BZip2Exception() |
59 |
{ |
60 |
|
61 |
} |
62 |
|
63 |
/// <summary> |
64 |
/// Initialise a new instance of BZip2Exception with its message set to message. |
65 |
/// </summary> |
66 |
/// <param name="message">The message describing the error.</param> |
67 |
public BZip2Exception(string message) : base(message) |
68 |
{ |
69 |
} |
70 |
|
71 |
/// <summary> |
72 |
/// Initialise an instance of BZip2Exception |
73 |
/// </summary> |
74 |
/// <param name="message">A message describing the error.</param> |
75 |
/// <param name="exception">The exception that is the cause of the current exception.</param> |
76 |
public BZip2Exception(string message, Exception exception) |
77 |
: base(message, exception) |
78 |
{ |
79 |
} |
80 |
} |
81 |
} |