public class NegativeIntegerException extends Exception { private int problemValue; public int getProblemValue() {return problemValue;} public NegativeIntegerException() { super("Negative integer!"); } public NegativeIntegerException(String message) { super(message); } public NegativeIntegerException(String message, int v) { super(message); problemValue=v;} }