fromByte

@DeprecatedAsErrorSince(version = KotoolsTypesVersion.V4_5_3)
fun fromByte(number: Byte): Zero

Deprecated (with error)

Use the 'orThrow' method instead.

Replace with

import org.kotools.types.Zero
Zero.orThrow(number)

Creates an instance of Zero from the specified number, or throws an IllegalArgumentException if the number is other than zero.

See the fromByteOrNull method for returning null instead of throwing an exception in case of invalid number.