Class UnexpectedResponseCodeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
uk.ac.manchester.spinnaker.messages.model.UnexpectedResponseCodeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
UnroutableMessageException

public class UnexpectedResponseCodeException
extends Exception
Indicate that a response code returned from the board was unexpected for the current operation.
See Also:
Serialized Form
  • Field Details

    • response

      public final SCPResult response
      The response that cause this exception to be thrown, if known.
  • Constructor Details

    • UnexpectedResponseCodeException

      public UnexpectedResponseCodeException​(String operation, Enum<?> command, SCPResult response, Object ignored)
      Special constructor for one-way operations.
      Parameters:
      operation - The operation being performed
      command - The command being executed
      response - The response received in error
      ignored - Ignored
    • UnexpectedResponseCodeException

      public UnexpectedResponseCodeException​(String operation, Enum<?> command, SCPResult response)
      Parameters:
      operation - The operation being performed
      command - The command being executed
      response - The response received in error