java doc for illegal movement exception