checkArgument

open fun checkArgument(expression: Boolean, message: Any)(source)

Ensures the truth of an expression involving one or more parameters to the calling method.

Parameters

expression

a boolean expression.

message

the exception message to use if the check fails; will be converted to a string using String.valueOf(Object)

Throws

if expression is false.


open fun checkArgument(expression: Boolean)(source)

Ensures the truth of an expression involving one or more parameters to the calling method.

Parameters

expression

a boolean expression.

Throws

if expression is false.