Class ErrorCommandResult
java.lang.Object
za.co.wethinkcode.robots.server.clientCommands.ClientCommandResult
za.co.wethinkcode.robots.server.errors.ErrorCommandResult
- All Implemented Interfaces:
CommandResult
Standard Error CommandResult that can be constructed anywhere
-
Constructor Summary
ConstructorsConstructorDescriptionErrorCommandResult(ImplementedClientCommands clientCommandSource, String message) Constructor for Error Command Result from a command source source and messageErrorCommandResult(InternalResponseCode responseCode, ImplementedClientCommands clientCommandSource, String message) Constructor for Error Command Result from an internal response code, source and message -
Method Summary
Modifier and TypeMethodDescriptionReturn the command that this result was evaluatingExplicitly forces Command Results to return a responseCodevoidAllows us to write our output to diskMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface za.co.wethinkcode.robots.shared.CommandResult
toString
-
Constructor Details
-
Method Details
-
getImplementedClientCommands
Return the command that this result was evaluating- Specified by:
getImplementedClientCommandsin classClientCommandResult- Returns:
- which command this is an evaluation of
-
getMessage
- Specified by:
getMessagein classClientCommandResult- Returns:
- the result's message (useful for debugging)
-
writeToDisk
public void writeToDisk()Allows us to write our output to disk -
getInternalResponseCode
Explicitly forces Command Results to return a responseCode- Returns:
- a response code
-