Stack con eccezione class OutOfDataException extends Exception { String errormessage; public OutOfDataException(String s) { super(s); errormessage = s; } public OutOfDataException() { super(); errormessage = OutOfDataException ; } public String toString() { return errormessage; } }