io.github.osamabmaq.tafqeetj.exceptions.NumberOutOfRangeException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of TafqeetJ Show documentation
Show all versions of TafqeetJ Show documentation
A Java library to convert numbers from digital format to words format in Arabic language.
The newest version!
package io.github.osamabmaq.tafqeetj.exceptions;
import java.math.BigDecimal;
import java.math.BigInteger;
public class NumberOutOfRangeException extends RuntimeException {
public NumberOutOfRangeException(long number) {
super("Out of range value: " + number);
}
public NumberOutOfRangeException(BigInteger number) {
super("Out of range value: " + number);
}
public NumberOutOfRangeException(BigDecimal number) {
super("Out of range value: " + number.toPlainString());
}
}