Skip to content

Commit 262a623

Browse files
committed
Make exceptions extend ArithmeticException
1 parent 53f9d68 commit 262a623

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/firebirdsql/decimal/DecimalInconvertibleException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*
3535
* @author <a href="mailto:mark@lawinegevaar.nl">Mark Rotteveel</a>
3636
*/
37-
public class DecimalInconvertibleException extends RuntimeException {
37+
public class DecimalInconvertibleException extends ArithmeticException {
3838

3939
private final DecimalType decimalType;
4040
private final int signum;

src/main/java/org/firebirdsql/decimal/DecimalOverflowException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*
2727
* @author <a href="mailto:mark@lawinegevaar.nl">Mark Rotteveel</a>
2828
*/
29-
public final class DecimalOverflowException extends RuntimeException {
29+
public final class DecimalOverflowException extends ArithmeticException {
3030

3131
public DecimalOverflowException(String message) {
3232
super(message);

0 commit comments

Comments
 (0)