Skip to content

Consider changing ArithmeticException to NumberFormatException in BigDecimal::parseStringWithMode. #329

@vdshb

Description

@vdshb

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions