5 lines
158 B
Java
5 lines
158 B
Java
public class NegativeNumberException extends ArithmeticException {
|
|
public NegativeNumberException() {
|
|
super("No negative number please!");
|
|
}
|
|
} |