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
{
///
/// Describes an error that occured when generating the command
///
public class CommandErrorEventArgs : EventArgs
{
///
/// Error Description
///
public string Error { get; }
///
/// If this CommandErrorEventArgs object was created in response to an exception, that exception is captured here.
/// If no exception was thrown, this property will be null.
///
public Exception Exception { get; }
///
///
///
///
///
public CommandErrorEventArgs(string error, Exception ex)
{
Error = error;
this.Exception = ex;
}
///
///
///
/// Exception to data to pass to the event handler
public CommandErrorEventArgs(Exception ex)
{
Error = ex.Message;
this.Exception = ex;
}
}
}