public class MessageAuthenticationException
extends java.lang.Exception
implements com.highdeal.hmi.IByteMarshallable
| Constructor and Description |
|---|
MessageAuthenticationException(IAuthenticationListener.Reason reason,
java.lang.String message)
Constructs an exception with a reason and a message.
|
MessageAuthenticationException(com.highdeal.hmi.IDataBuffer buffer)
Constructs an exception from a data buffer.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMessage() |
IAuthenticationListener.Reason |
getReason()
Gets the
IAuthenticationListener.Reason of the exception. |
void |
marshal(com.highdeal.hmi.DataBuffer buffer)
Writes the
object into a writable data buffer. |
void |
unmarshal(com.highdeal.hmi.IDataBuffer buffer)
Reads the
object from a readable data buffer. |
public MessageAuthenticationException(com.highdeal.hmi.IDataBuffer buffer)
buffer - the data bufferpublic MessageAuthenticationException(IAuthenticationListener.Reason reason, java.lang.String message)
reason - The IAuthenticationListener.Reason of the exceptionmessage - The text message of the exceptionpublic IAuthenticationListener.Reason getReason()
IAuthenticationListener.Reason of the exception.IAuthenticationListener.Reason of the exceptionpublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void marshal(com.highdeal.hmi.DataBuffer buffer)
com.highdeal.hmi.IByteMarshallableobject into a writable data buffer.marshal in interface com.highdeal.hmi.IByteMarshallablebuffer - a buffer where object has to be serialized intopublic void unmarshal(com.highdeal.hmi.IDataBuffer buffer)
com.highdeal.hmi.IByteMarshallableobject from a readable data buffer.unmarshal in interface com.highdeal.hmi.IByteMarshallablebuffer - a buffer where serialized object will be read from