public short shortValueExact ()

Converts this BigInteger to a short, checking for lost information. If the value of this BigInteger is out of the range of the short type, then an ArithmeticException is thrown.

Returns:  this BigInteger converted to a short.

Exceptions:
ArithmeticException    if the value of this will not exactly fit in a short.

See also:
BigInteger.shortValue

Since:  1.8