BigDecimal::parseStringWithMode throws ArithmeticException when input argument is not correctly formatted number. This is a suggestion to enhance API and change it to NumberFormatException as a better choice for this matter (BigInteger::parseString is already using NumberFormatException).
Usages:
|
else -> throw ArithmeticException("Invalid (or unsupported) floating point number format: $floatingPointString") |
|
else -> throw ArithmeticException("Invalid (or unsupported) floating point number format: $floatingPointString") |