|
|
@ -9,6 +9,9 @@ using System; |
|
|
|
|
|
|
|
|
|
|
|
namespace Debugger |
|
|
|
namespace Debugger |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Type of exception thrown by the Debugger.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
public class DebuggerException: System.Exception |
|
|
|
public class DebuggerException: System.Exception |
|
|
|
{ |
|
|
|
{ |
|
|
|
public DebuggerException() {} |
|
|
|
public DebuggerException() {} |
|
|
@ -16,8 +19,32 @@ namespace Debugger |
|
|
|
public DebuggerException(string message, System.Exception inner): base(message, inner) {} |
|
|
|
public DebuggerException(string message, System.Exception inner): base(message, inner) {} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// An exception that is thrown when the debugged process unexpectedly exits.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
public class ProcessExitedException: DebuggerException |
|
|
|
public class ProcessExitedException: DebuggerException |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
string processName = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// The name of the process that has exited.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string ProcessName { |
|
|
|
|
|
|
|
get { return processName; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Creates a ProcessExitedException for an unnamed process.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
public ProcessExitedException(): base("Process exited") {} |
|
|
|
public ProcessExitedException(): base("Process exited") {} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Creates a ProcessExitedException for a process.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="processName">The name of the process</param>
|
|
|
|
|
|
|
|
public ProcessExitedException(string processName): base(string.Format("Process '{0}' exited.", processName)) { |
|
|
|
|
|
|
|
this.processName = processName; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|