Module com.flexganttfx.model
Package com.flexganttfx.model.exception
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 Summary
Constructors Constructor Description IllegalLineIndexException(Row<?,?,?> row, int lineIndex, int lineCount)
Constructs a new exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLineCount()
Returns the total number of lines used for the row.int
getLineIndex()
Returns the line index that did not fit into the line count.Row<?,?,?>
getRow()
Returns the row where the exception occured.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
IllegalLineIndexException
public IllegalLineIndexException(Row<?,?,?> row, int lineIndex, int lineCount)
Constructs a new exception.- Parameters:
row
- the row where the exception occuredlineIndex
- the line index that violated the line countlineCount
- the total number of lines inside the row- Since:
- 1.0
-
-
Method Detail
-
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)
-
-