Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class LessThanOrEqualToZeroException extends RuntimeException {
- public LessThanOrEqualToZeroException() {
- super("Number must be greater than 0");
- }
- public LessThanOrEqualToZeroException(String myField) {
- super("\n***** " + myField + " was not greater than 0");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement