org.biffle.cliff.pearl
Class UnexpectedResponseException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.biffle.cliff.pearl.PearlException
|
+--org.biffle.cliff.pearl.UnexpectedResponseException
- All Implemented Interfaces:
- java.io.Serializable
- public class UnexpectedResponseException
- extends PearlException
Thrown when the Pearl device sends a message other than what was expected --
namely, a message whose Message Type differs from the request. This
exception is thrown only for unexpected normal messages; NAK is handled by
the NAKException, and Busy will be handled by a callback interface not yet
defined (FIXME).
- See Also:
- Serialized Form
|
Constructor Summary |
UnexpectedResponseException(int expected,
int received)
Creates a new UnexpectedResponseException with the expected message type
and the message type received |
UnexpectedResponseException(java.lang.String msg,
int expected,
int received)
Creates a new UnexpectedResponseException with a text message, the
expected message type, and the message type received. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UnexpectedResponseException
public UnexpectedResponseException(int expected,
int received)
- Creates a new UnexpectedResponseException with the expected message type
and the message type received
UnexpectedResponseException
public UnexpectedResponseException(java.lang.String msg,
int expected,
int received)
- Creates a new UnexpectedResponseException with a text message, the
expected message type, and the message type received.