public class BattleErrorEvent extends BattleEvent
onBattleError()
when an error message is sent from the game in the during the battle.IBattleListener
,
BattleMessageEvent
Constructor and Description |
---|
BattleErrorEvent(String error,
Throwable throwable)
Called by the game to create a new BattleErrorEvent.
|
Modifier and Type | Method and Description |
---|---|
String |
getError()
Returns the error message.
|
Throwable |
getErrorInstance()
Returns the error instance when available.
|
public String getError()
public Throwable getErrorInstance()
Copyright © 2021 Robocode. All Rights Reserved.