fail

open fun fail(@NonNull message: Any)

Fail.

Log a bug message in release, throw AssertionError in debug.

Parameters

message

Message.


open fun fail(@NonNull format: String, args: Array<Any>)

Fail.

Log a formatted bug message in release, throw formatted AssertionError in debug.

Parameters

format

Formatting string.

args

Formatting arguments.


open fun fail(@NonNull location: Location, @NonNull format: String, args: Array<Any>)

Fail.

Log a formatted bug message in release, throw formatted AssertionError in debug.

Parameters

location

Location.

format

Formatting string.

args

Formatting arguments.