public class UnsafeMoveException extends ImpossibleMowerCommandException
Constructor and Description |
---|
UnsafeMoveException(String message,
PositionState nextPositionState)
A constructor, which will set the message into the global variable 'message', and the asked state which caused
the error.
|
Modifier and Type | Method and Description |
---|---|
PositionState |
getAskedPositionState() |
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UnsafeMoveException(String message, PositionState nextPositionState)
message
- the error message to show.nextPositionState
- the state which caused the errorpublic String getMessage()
getMessage
in class Throwable
public PositionState getAskedPositionState()
Copyright © 2016. All Rights Reserved.