endExclusive

open override val endExclusive: Int(source)

Deprecated

Can throw an exception when it's impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It's recommended to use 'endInclusive' property that doesn't throw.

The maximum value in the range (exclusive).

Since Kotlin

1.9

Throws

can be thrown if the exclusive end bound cannot be represented with a value of type T.