Method ThrowIfNot
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.dll
ThrowIfNot(MaaJobStatus, MaaJobStatus, string, params object?[])
Throws a MaaFramework.Binding.MaaJobStatusException if the current
status is not in a correct
status.
public static void ThrowIfNot(this MaaJobStatus current, MaaJobStatus correct, string message = "", params object?[] args)
Parameters
current
MaaJobStatus-
The current status.
correct
MaaJobStatus-
The correct status.
message
string-
The message.
args
object?[]-
The key arguments.