ZedGraphException.cs
3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//============================================================================
//ZedGraphException Class
//Copyright © 2004 Jerry Vos
//
//This library is free software; you can redistribute it and/or
//modify it under the terms of the GNU Lesser General Public
//License as published by the Free Software Foundation; either
//version 2.1 of the License, or (at your option) any later version.
//
//This library is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
//Lesser General Public License for more details.
//
//You should have received a copy of the GNU Lesser General Public
//License along with this library; if not, write to the Free Software
//Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//=============================================================================
using System;
namespace ZedGraph
{
/// <summary>
/// An exception thrown by ZedGraph. A child class of <see cref="ApplicationException"/>.
/// </summary>
///
/// <author> Jerry Vos modified by John Champion</author>
/// <version> $Revision: 3.2 $ $Date: 2006/06/24 20:26:44 $ </version>
public class ZedGraphException : System.ApplicationException
{
/// <summary>
/// Initializes a new instance of the <see cref="ZedGraphException"/>
/// class with serialized data.
/// </summary>
/// <param name="info">The <see cref="System.Runtime.Serialization.SerializationInfo"/>
/// instance that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="System.Runtime.Serialization.StreamingContext"/>
/// instance that contains contextual information about the source or destination.</param>
protected ZedGraphException( System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context )
: base ( info, context )
{
}
/// <summary>
/// Initializes a new instance of the <see cref="Exception"/> class with a specified
/// error message and a reference to the inner exception that is the cause of this exception.
/// </summary>
/// <param name="message">The error message that explains the reason for the exception.</param>
/// <param name="innerException">The exception that is the cause of the current exception.
/// If the innerException parameter is not a null reference, the current exception is raised
/// in a catch block that handles the inner exception.</param>
public ZedGraphException( System.String message, System.Exception innerException )
: base ( message, innerException )
{
}
/// <summary>
/// Initializes a new instance of the <see cref="Exception"/> class with a specified error message.
/// </summary>
/// <param name="message">The error message that explains the reason for the exception.</param>
public ZedGraphException ( System.String message )
: base( message )
{
}
/// <summary>
/// Initializes a new instance of the <see cref="Exception"/> class.
/// </summary>
public ZedGraphException()
: base()
{
}
}
}