~ubuntu-branches/ubuntu/trusty/pdfmod/trusty

« back to all changes in this revision

Viewing changes to lib/PdfSharp/PdfSharp.SharpZipLib/SharpZip/SharpZipBaseException.cs

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2010-06-18 03:44:46 UTC
  • Revision ID: james.westby@ubuntu.com-20100618034446-bogifrsscpayp361
Tags: upstream-0.8.3
ImportĀ upstreamĀ versionĀ 0.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// SharpZipBaseException.cs
 
2
//
 
3
// Copyright 2004 John Reilly
 
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
 
 
39
using System;
 
40
 
 
41
namespace PdfSharp.SharpZipLib
 
42
{
 
43
        /// <summary>
 
44
        /// SharpZipBaseException is the base exception class for the SharpZipLibrary.
 
45
        /// All library exceptions are derived from this.
 
46
        /// </summary>
 
47
        internal class SharpZipBaseException : ApplicationException
 
48
        {
 
49
                /// <summary>
 
50
                /// Initializes a new instance of the SharpZipLibraryException class.
 
51
                /// </summary>
 
52
                public SharpZipBaseException()
 
53
                {
 
54
                }
 
55
                
 
56
                /// <summary>
 
57
                /// Initializes a new instance of the SharpZipLibraryException class with a specified error message.
 
58
                /// </summary>
 
59
                public SharpZipBaseException(string msg) : base(msg)
 
60
                {
 
61
                }
 
62
 
 
63
                /// <summary>
 
64
                /// Initializes a new instance of the SharpZipLibraryException class with a specified
 
65
                /// error message and a reference to the inner exception that is the cause of this exception.
 
66
                /// </summary>
 
67
                /// <param name="message">Error message string</param>
 
68
                /// <param name="innerException">The inner exception</param>
 
69
                public SharpZipBaseException(string message, Exception innerException)  : base(message, innerException)
 
70
                {
 
71
                }
 
72
        }
 
73
}