summaryrefslogtreecommitdiff
path: root/ICSharpCode.Decompiler/ReferenceResolvingException.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ICSharpCode.Decompiler/ReferenceResolvingException.cs')
-rw-r--r--ICSharpCode.Decompiler/ReferenceResolvingException.cs68
1 files changed, 68 insertions, 0 deletions
diff --git a/ICSharpCode.Decompiler/ReferenceResolvingException.cs b/ICSharpCode.Decompiler/ReferenceResolvingException.cs
new file mode 100644
index 00000000..dbceb44b
--- /dev/null
+++ b/ICSharpCode.Decompiler/ReferenceResolvingException.cs
@@ -0,0 +1,68 @@
+// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy of this
+// software and associated documentation files (the "Software"), to deal in the Software
+// without restriction, including without limitation the rights to use, copy, modify, merge,
+// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
+// to whom the Software is furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in all copies or
+// substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
+// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+// DEALINGS IN THE SOFTWARE.
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace ICSharpCode.Decompiler
+{
+ /// <summary>
+ /// Represents an error while resolving a reference to a type or a member.
+ /// </summary>
+ [Serializable]
+ public class ReferenceResolvingException : Exception
+ {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="T:ResolveException"/> class
+ /// </summary>
+ public ReferenceResolvingException()
+ {
+ }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="T:ResolveException"/> class
+ /// </summary>
+ /// <param name="message">A <see cref="T:System.String"/> that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param>
+ public ReferenceResolvingException(string message)
+ : base(message)
+ {
+ }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="T:ResolveException"/> class
+ /// </summary>
+ /// <param name="message">A <see cref="T:System.String"/> that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param>
+ /// <param name="inner">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 ReferenceResolvingException(string message, Exception inner)
+ : base(message, inner)
+ {
+ }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="T:ResolveException"/> class
+ /// </summary>
+ /// <param name="info">The object that holds the serialized object data.</param>
+ /// <param name="context">The contextual information about the source or destination.</param>
+ protected ReferenceResolvingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
+ : base(info, context)
+ {
+ }
+ }
+}