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 Summary
-
Constructor Summary
Constructors Constructor Description UnexpectedResponseCodeException(String operation, Enum<?> command, SCPResult response)
UnexpectedResponseCodeException(String operation, Enum<?> command, SCPResult response, Object ignored)
Special constructor for one-way operations. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
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 performedcommand
- The command being executedresponse
- The response received in errorignored
- Ignored
-
UnexpectedResponseCodeException
- Parameters:
operation
- The operation being performedcommand
- The command being executedresponse
- The response received in error
-