Class BattleException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.pixelmonmod.pixelmon.battles.controller.BattleException
All Implemented Interfaces:
Serializable

public class BattleException extends Exception
Thrown when an error occurs during import of Pokemon
See Also:
  • Constructor Details

    • BattleException

      public BattleException(String failureType, String failureReason, PixelmonWrapper pw)
      Default 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

    • getType

      public String getType()
      Gets the type of battle failure
      Returns:
      The battle failure
    • getReason

      public String getReason()
      Gets the reason the action failed
      Returns:
      The reason
    • getOffendingPokemon

      public PixelmonWrapper getOffendingPokemon()
      Gets the pokemon who's action caused the failure.
      Returns:
      The pokemon