001 package org.springframework.richclient.widget.editor.provider; 002 003 public class MaximumRowsExceededException extends RuntimeException 004 { 005 private int maxRows; 006 private int numberOfRows; 007 008 public MaximumRowsExceededException(int maxRows, int numberOfRows) 009 { 010 this.maxRows = maxRows; 011 this.numberOfRows = numberOfRows; 012 } 013 014 public int getMaxRows() 015 { 016 return maxRows; 017 } 018 019 public int getNumberOfRows() 020 { 021 return numberOfRows; 022 } 023 }