4a27cd3 RoboSharp eingefügt 1b2fc1f Erweiterungsmethode für Startparameter einefügt git-subtree-dir: FSI.Lib git-subtree-split: 4a27cd377a1959dc669625473b018e42c31ef147
47 lines
1.4 KiB
C#
47 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
// Do Not change NameSpace here! -> Must be RoboSharp due to prior releases
|
|
namespace FSI.Lib.Tools.RoboSharp
|
|
{
|
|
/// <summary>
|
|
/// Describes an error that occured when generating the command
|
|
/// </summary>
|
|
public class CommandErrorEventArgs : EventArgs
|
|
{
|
|
/// <summary>
|
|
/// Error Description
|
|
/// </summary>
|
|
public string Error { get; }
|
|
|
|
/// <summary>
|
|
/// If this CommandErrorEventArgs object was created in response to an exception, that exception is captured here. <br/>
|
|
/// If no exception was thrown, this property will be null.
|
|
/// </summary>
|
|
public Exception Exception { get; }
|
|
|
|
/// <summary>
|
|
/// <inheritdoc cref="CommandErrorEventArgs"/>
|
|
/// </summary>
|
|
/// <param name="error"><inheritdoc cref="Error"/></param>
|
|
/// <param name="ex"><inheritdoc cref="Exception"/></param>
|
|
public CommandErrorEventArgs(string error, Exception ex)
|
|
{
|
|
Error = error;
|
|
this.Exception = ex;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <inheritdoc cref="CommandErrorEventArgs"/>
|
|
/// </summary>
|
|
/// <param name="ex">Exception to data to pass to the event handler</param>
|
|
public CommandErrorEventArgs(Exception ex)
|
|
{
|
|
Error = ex.Message;
|
|
this.Exception = ex;
|
|
}
|
|
|
|
}
|
|
} |