diff --git a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/DebuggerException.cs b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/DebuggerException.cs
index dce2bbf6fc..11770e8c9f 100644
--- a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/DebuggerException.cs
+++ b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/DebuggerException.cs
@@ -9,6 +9,9 @@ using System;
namespace Debugger
{
+ ///
+ /// Type of exception thrown by the Debugger.
+ ///
public class DebuggerException: System.Exception
{
public DebuggerException() {}
@@ -16,8 +19,32 @@ namespace Debugger
public DebuggerException(string message, System.Exception inner): base(message, inner) {}
}
+ ///
+ /// An exception that is thrown when the debugged process unexpectedly exits.
+ ///
public class ProcessExitedException: DebuggerException
{
+ string processName = null;
+
+ ///
+ /// The name of the process that has exited.
+ ///
+ public string ProcessName {
+ get { return processName; }
+ }
+
+ ///
+ /// Creates a ProcessExitedException for an unnamed process.
+ ///
public ProcessExitedException(): base("Process exited") {}
+
+ ///
+ /// Creates a ProcessExitedException for a process.
+ ///
+ /// The name of the process
+ public ProcessExitedException(string processName): base(string.Format("Process '{0}' exited.", processName)) {
+ this.processName = processName;
+ }
+
}
}