Table of Contents

Method ThrowIf

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll

ThrowIf(MaaJobStatus, MaaJobStatus, string, params object?[])

Throws a MaaFramework.Binding.MaaJobStatusException if the current status is in a incorrect status.

public static void ThrowIf(this MaaJobStatus current, MaaJobStatus incorrect, string message = "", params object?[] args)

Parameters

current MaaJobStatus

The current status.

incorrect MaaJobStatus

The incorrect status.

message string

The message.

args object?[]

The key arguments.

Exceptions

MaaJobStatusException