This should probably be IllegalArgumentException instead of RuntimeException.