Class FailureTask<T>
Immediately fails the task by throwing an exception.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Snowflake.Installation.Tasks
Assembly: Snowflake.Framework.dll
Syntax
public sealed class FailureTask<T> : AsyncInstallTask<T>
Type Parameters
Name | Description |
---|---|
T |
Constructors
FailureTask(Exception)
Fails with the provided exception
Declaration
public FailureTask(Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System. |
exception | The exception that occurred. |
FailureTask(String)
Fails with the provided message using a generic exception.
Declaration
public FailureTask(string message)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | The messsage to fail with. |
FailureTask(String, Exception)
Fails with the provided message using the provided exception.
Declaration
public FailureTask(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | The messsage to fail with. |
System. |
innerException | The inner exception. |
Properties
TaskName
Declaration
protected override string TaskName { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
Snowflake.Installation.AsyncInstallTask<T>.TaskName
Methods
CreateFailureDescription(AggregateException)
Declaration
protected override ValueTask<string> CreateFailureDescription(AggregateException e)
Parameters
Type | Name | Description |
---|---|---|
System. |
e |
Returns
Type | Description |
---|---|
System. |
Overrides
Snowflake.Installation.AsyncInstallTask<T>.CreateFailureDescription(System.AggregateException)
ExecuteOnce()
Declaration
protected override Task<T> ExecuteOnce()
Returns
Type | Description |
---|---|
System. |
Overrides
Snowflake.Installation.AsyncInstallTask<T>.ExecuteOnce()