CauBaseCommand.FailFast Method (String, Exception)

 

Handles an unexpected exception that was thrown during processing of a cmdlet.

Namespace:   Microsoft.ClusterAwareUpdating.Commands
Assembly:  ClusterAwareUpdating (in ClusterAwareUpdating.dll)

Syntax

protected static bool FailFast(
    string cmdletName,
    Exception unhandled
)
protected:
static bool FailFast(
    String^ cmdletName,
    Exception^ unhandled
)
static member FailFast : 
        cmdletName:string *
        unhandled:Exception -> bool
Protected Shared Function FailFast (
    cmdletName As String,
    unhandled As Exception
) As Boolean

Parameters

  • cmdletName
    Type: System.String

    The name of the cmdlet that is being processed.

Return Value

Type: System.Boolean

Returns true if cmdlet processing failed due to the exception; returns false if PowerShell is handling the exception.

See Also

CauBaseCommand Class
Microsoft.ClusterAwareUpdating.Commands Namespace

Return to top