/Debugger/Debugger.Core/DebuggerException.cs
http://github.com/icsharpcode/ILSpy · C# · 45 lines · 21 code · 6 blank · 18 comment · 0 complexity · 8b5d17717d8647d6699d4b93bf4efa25 MD5 · raw file
- // 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)
- namespace Debugger
- {
- /// <summary>
- /// Type of exception thrown by the Debugger.
- /// </summary>
- public class DebuggerException: System.Exception
- {
- public DebuggerException() {}
- public DebuggerException(string message): base(message) {}
- public DebuggerException(string message, params object[] args): base(string.Format(message, args)) {}
- 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
- {
- 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") {}
-
- /// <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;
- }
-
- }
- }