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 MaaJobStatus ThrowIf(this MaaJobStatus current, MaaJobStatus incorrect, string message = "", params object?[] args)Parameters
currentMaaJobStatus-
The current status.
incorrectMaaJobStatus-
The incorrect status.
messagestring-
The message.
argsobject?[]-
The key arguments.
Returns
- MaaJobStatus
-
The current status.