View Javadoc

1   package org.paneris.bibliomania;
2   
3   public abstract class SequenceFTILimitsException extends FTILimitsException {
4   
5     public SequenceFTILimitsException(int n, int limit) {
6       super(n, limit);
7     }
8   
9     public abstract String getParentTable();
10  
11    public String getMessage() {
12      return "Sorry, you are attempting to assign a `" + getTable().getName() +
13             "' to be number " + n + " attached to its `" + getParentTable() +
14             "' but the system can only handle a maximum of " + (limit - 1);
15    }
16  }