Added Flight POint Test as well as some Exceptions

This commit is contained in:
YaFedImYaEatIm
2016-09-19 01:43:06 +12:00
parent 548b5fe321
commit 6e3ba9775a
3 changed files with 94 additions and 2 deletions
@@ -197,7 +197,10 @@ public class FlightPoint {
* gets the Path Index ID at this point.
* @return
*/
public int getIndex(){
public int getIndex() throws DataException{
if (indexID == -1){
throw new DataException("Index ID is not set.");
}
return indexID;
}