~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Xml/InternalException.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
 
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
 
3
 
 
4
using System;
 
5
using System.Runtime.Serialization;
 
6
 
 
7
namespace ICSharpCode.AvalonEdit.Xml
 
8
{
 
9
        /// <summary>
 
10
        /// Exception used for internal errors in XML parser.
 
11
        /// This exception indicates a bug in AvalonEdit.
 
12
        /// </summary>
 
13
        [Serializable()]
 
14
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1064:ExceptionsShouldBePublic", Justification = "This exception is not public because it is not supposed to be caught by user code - it indicates a bug in AvalonEdit.")]
 
15
        class InternalException : Exception
 
16
        {
 
17
                /// <summary>
 
18
                /// Creates a new InternalException instance.
 
19
                /// </summary>
 
20
                public InternalException() : base()
 
21
                {
 
22
                }
 
23
                
 
24
                /// <summary>
 
25
                /// Creates a new InternalException instance.
 
26
                /// </summary>
 
27
                public InternalException(string message) : base(message)
 
28
                {
 
29
                }
 
30
                
 
31
                /// <summary>
 
32
                /// Creates a new InternalException instance.
 
33
                /// </summary>
 
34
                public InternalException(string message, Exception innerException) : base(message, innerException)
 
35
                {
 
36
                }
 
37
                
 
38
                /// <summary>
 
39
                /// Creates a new InternalException instance.
 
40
                /// </summary>
 
41
                protected InternalException(SerializationInfo info, StreamingContext context) : base(info, context)
 
42
                {
 
43
                }
 
44
        }
 
45
}