From fc8a05358a92cc3c77c5f1e30d536807ef0614fd Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Mon, 8 Apr 2019 13:49:55 +0300 Subject: were added scripting projects --- .../Editing/DragDropException.cs | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Editing/DragDropException.cs (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Editing/DragDropException.cs') diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Editing/DragDropException.cs b/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Editing/DragDropException.cs new file mode 100644 index 000000000..2ba8e41ec --- /dev/null +++ b/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Editing/DragDropException.cs @@ -0,0 +1,46 @@ +// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) +// This code is distributed under the GNU LGPL (for details please see \doc\license.txt) + +using System; +using System.Runtime.Serialization; + +namespace Tango.Scripting.Editors.Editing +{ + /// + /// Wraps exceptions that occur during drag'n'drop. + /// Exceptions during drag'n'drop might + /// get swallowed by WPF/COM, so AvalonEdit catches them and re-throws them later + /// wrapped in a DragDropException. + /// + [Serializable()] + public class DragDropException : Exception + { + /// + /// Creates a new DragDropException. + /// + public DragDropException() : base() + { + } + + /// + /// Creates a new DragDropException. + /// + public DragDropException(string message) : base(message) + { + } + + /// + /// Creates a new DragDropException. + /// + public DragDropException(string message, Exception innerException) : base(message, innerException) + { + } + + /// + /// Deserializes a DragDropException. + /// + protected DragDropException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } + } +} -- cgit v1.3.1