Package za.co.wethinkcode.robots.errors
Class RobotCannotActException
java.lang.Object
java.lang.Throwable
java.lang.Exception
za.co.wethinkcode.robots.errors.RobotCannotActException
- All Implemented Interfaces:
Serializable
This exception encapsulates the behaviour of a
Robot who cannot act,
typically due to a mismatched Status such as Status.DEAD- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRobotCannotActException(String message) Constructor for aRobotCannotActExceptionfor an unclear reasonRobotCannotActException(Status s, Robot r, World w) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RobotCannotActException
Constructor for aRobotCannotActExceptionfor an unclear reason- Parameters:
message- the reason the thisRobotcannot act
-
RobotCannotActException
public RobotCannotActException() -
RobotCannotActException
- Parameters:
s- the current status of the robotr- the robot failing to actw- the world that the robot is failing to act in
-