Class BattleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.pixelmonmod.pixelmon.battles.controller.BattleException
- All Implemented Interfaces:
- Serializable
Thrown when an error occurs during import of 
Pokemon- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionBattleException(String failureType, String failureReason, PixelmonWrapper pw) Default constructor
- 
Method SummaryModifier and TypeMethodDescriptionGets the pokemon who's action caused the failure.Gets the reason the action failedgetType()Gets the type of battle failureMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
BattleExceptionDefault constructor- Parameters:
- failureType- The type of the battle failure
- failureReason- The reason it failed
- pw- The pokemon who's action caused the failure
 
 
- 
- 
Method Details- 
getTypeGets the type of battle failure- Returns:
- The battle failure
 
- 
getReasonGets the reason the action failed- Returns:
- The reason
 
- 
getOffendingPokemonGets the pokemon who's action caused the failure.- Returns:
- The pokemon
 
 
-