root/branches/Abonament/BazaReklam.Updater/ICSharpCode.SharpZipLib/Zip/ZipException.cs @ 810

Wersja 597, 3.4 KB (wprowadzona przez marek, 17 years temu)

re #165

Line 
1// ZipException.cs
2//
3// Copyright (C) 2001 Mike Krueger
4//
5// This file was translated from java, it was part of the GNU Classpath
6// Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
7//
8// This program is free software; you can redistribute it and/or
9// modify it under the terms of the GNU General Public License
10// as published by the Free Software Foundation; either version 2
11// of the License, or (at your option) any later version.
12//
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16// GNU General Public License for more details.
17//
18// You should have received a copy of the GNU General Public License
19// along with this program; if not, write to the Free Software
20// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21//
22// Linking this library statically or dynamically with other modules is
23// making a combined work based on this library.  Thus, the terms and
24// conditions of the GNU General Public License cover the whole
25// combination.
26//
27// As a special exception, the copyright holders of this library give you
28// permission to link this library with independent modules to produce an
29// executable, regardless of the license terms of these independent
30// modules, and to copy and distribute the resulting executable under
31// terms of your choice, provided that you also meet, for each linked
32// independent module, the terms and conditions of the license of that
33// module.  An independent module is a module which is not derived from
34// or based on this library.  If you modify this library, you may extend
35// this exception to your version of the library, but you are not
36// obligated to do so.  If you do not wish to do so, delete this
37// exception statement from your version.
38
39using System;
40
41#if !NETCF_1_0 && !NETCF_2_0
42using System.Runtime.Serialization;
43#endif
44
45namespace ICSharpCode.SharpZipLib.Zip
46{
47       
48        /// <summary>
49        /// Represents exception conditions specific to Zip archive handling
50        /// </summary>
51#if !NETCF_1_0 && !NETCF_2_0
52        [Serializable]
53#endif
54        public class ZipException : SharpZipBaseException
55        {
56#if !NETCF_1_0 && !NETCF_2_0
57                /// <summary>
58                /// Deserialization constructor
59                /// </summary>
60                /// <param name="info"><see cref="SerializationInfo"/> for this constructor</param>
61                /// <param name="context"><see cref="StreamingContext"/> for this constructor</param>
62                protected ZipException(SerializationInfo info, StreamingContext context )
63                        : base( info, context )
64                {
65                }
66#endif
67
68                /// <summary>
69                /// Initializes a new instance of the ZipException class.
70                /// </summary>
71                public ZipException()
72                {
73                }
74               
75                /// <summary>
76                /// Initializes a new instance of the ZipException class with a specified error message.
77                /// </summary>
78                /// <param name="message">The error message that explains the reason for the exception.</param>
79                public ZipException(string message)
80                        : base(message)
81                {
82                }
83
84                /// <summary>
85                /// Initialise a new instance of ZipException.
86                /// </summary>
87                /// <param name="message">A message describing the error.</param>
88                /// <param name="exception">The exception that is the cause of the current exception.</param>
89                public ZipException(string message, Exception exception)
90                        : base(message, exception)
91                {
92                }
93        }
94}
Notatka: Zobacz TracBrowser aby uzyskać więcej informacji.