Preconditions

Utility object for checking preconditions and throwing standardized exceptions.

This object provides methods for validating conditions and throwing WowException with specific error codes when conditions are not met. It uses lazy evaluation for error messages to avoid unnecessary string construction.

See also

Functions

Link copied to clipboard
inline fun check(value: Boolean, errorCode: String, lazyMessage: () -> String = { "" })

Checks a boolean condition and throws WowException if false.