There are 1 code examples for java.util.NoSuchElementException.
The API names are highlighted below.
You can use
button
to vote the code example(s) you like. The best code example will be ranked first next time. Thanks a lot for your feedback.
Project Name: megamek Package: megamek.common.event
Source Code: GameEntityChangeEvent.java (Click to view .java file)
Method Code:
@Override public String toString(){
try {
return getEntity().toString() + " moved to " + movePath.lastElement().getCoords().toFriendlyString();
}
catch ( NoSuchElementException nsee) {
if (getEntity() != null) {
return getEntity().toString() + " probably deployed.";
}
}
catch ( NullPointerException npe) {
return "There is nothing to move!";
}
return "Something happened.";
}