primitiveFailure

fun primitiveFailure(code: AvailErrorCode): Primitive.Result

Set the resulting value of a primitive invocation to the numeric code of the specified AvailErrorCode. Answer primitive failure.

Return

Primitive Result.FAILURE.

Parameters


fun primitiveFailure(exception: AvailException): Primitive.Result

Set the resulting value of a primitive invocation to the numeric code of the AvailErrorCode embedded within the specified exception. Answer primitive failure.

Return

Primitive Result.FAILURE.

Parameters

exception

fun primitiveFailure(exception: AvailRuntimeException): Primitive.Result

Set the resulting value of a primitive invocation to the numeric code of the AvailRuntimeException. Answer primitive failure.

Return

Primitive Result.FAILURE.

Parameters


fun primitiveFailure(result: A_BasicObject): Primitive.Result

Set the resulting value of a primitive invocation. Answer primitive failure.

Return

Primitive failure.

Parameters

result

The failure value of performing a primitive.