Additional edit alert updates (#652)

This commit is contained in:
Karl Burtram
2018-07-09 10:48:26 -07:00
committed by GitHub
parent 5d267303ae
commit 4ac0ae87ee
3 changed files with 76 additions and 48 deletions

View File

@@ -123,6 +123,11 @@ namespace Microsoft.SqlTools.ServiceLayer.Management
/// </summary>
private ExecutionMode executionResult;
/// <summary>
/// exception that caused execution failure
/// </summary>
private Exception executionFailureException;
/// <summary>
/// text of the generated script if RunNow method was called last time with scripting option
/// </summary>
@@ -155,6 +160,17 @@ namespace Microsoft.SqlTools.ServiceLayer.Management
}
}
/// <summary>
/// exception that caused execution failure
/// </summary>
public Exception ExecutionFailureException
{
get
{
return this.executionFailureException;
}
}
/// <summary>
/// text of the generated script if RunNow method was called last time with scripting option
/// </summary>
@@ -325,7 +341,8 @@ namespace Microsoft.SqlTools.ServiceLayer.Management
private void ProcessExceptionDuringExecution(Exception ex)
{
// show the error
this.executionResult = ExecutionMode.Failure;
this.executionResult = ExecutionMode.Failure;
this.executionFailureException = ex;
}
#endregion
}