public class MessageAuthenticationException extends Exception implements com.highdeal.hmi.IByteMarshallable
| Constructor and Description |
|---|
MessageAuthenticationException(IAuthenticationListener.Reason reason,
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 |
|---|---|
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. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MessageAuthenticationException(com.highdeal.hmi.IDataBuffer buffer)
buffer - the data bufferpublic MessageAuthenticationException(IAuthenticationListener.Reason reason, 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 String getMessage()
getMessage in class 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