Class IllegalLineIndexException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.flexganttfx.model.exception.IllegalLineIndexException
All Implemented Interfaces:
Serializable

public class IllegalLineIndexException
extends RuntimeException
An exception type used to indicate that the line index used for an activity is not within the possible range for a given row. Example: a row might have 10 lines but the line index is 15.
Since:
1.0
See Also:
Serialized Form
  • Constructor Details

    • IllegalLineIndexException

      public IllegalLineIndexException​(Row<?,​?,​?> row, int lineIndex, int lineCount)
      Constructs a new exception.
      Parameters:
      row - the row where the exception occured
      lineIndex - the line index that violated the line count
      lineCount - the total number of lines inside the row
      Since:
      1.0
  • Method Details

    • getRow

      public Row<?,​?,​?> getRow()
      Returns the row where the exception occured.
      Returns:
      the affected row
      Since:
      1.0
    • getLineCount

      public int getLineCount()
      Returns the total number of lines used for the row.
      Returns:
      the line count
      Since:
      1.0
      See Also:
      Row.getLineCount()
    • getLineIndex

      public int getLineIndex()
      Returns the line index that did not fit into the line count.
      Returns:
      the line index
      Since:
      1.0
      See Also:
      Row.getLineIndex(Activity)