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
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:
-
Constructor Summary
ConstructorsConstructorDescriptionIllegalLineIndexException
(Row<?, ?, ?> row, int lineIndex, int lineCount) Constructs a new exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IllegalLineIndexException
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 Details
-
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:
-
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:
-