OnFailure
An alias of ItBlock indicating a callback for something occurring exceptionally.
NOTE: The exception should not be re-thrown within the OnFailure lambda. If OnFailure is being utilized with TorRuntime
APIs, it will be treated as an UncaughtException and dispatched to RuntimeEvent.ERROR observers.
See also
Functions
Link copied to clipboard
@JvmStatic
@JvmName(name = "immediateErrorJob")
Creates a EnqueuedJob which immediately invokes OnFailure with the provided cause.