Package com.highdeal.cnd.message
Class MessageAuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.cnd.message.MessageAuthenticationException
- All Implemented Interfaces:
com.highdeal.hmi.IByteMarshallable,Serializable
public class MessageAuthenticationException
extends Exception
implements com.highdeal.hmi.IByteMarshallable
Exception thrown when an error occurs during the authentication of a user login on the message API.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMessageAuthenticationException(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. -
Method Summary
Modifier and TypeMethodDescriptionGets theIAuthenticationListener.Reasonof the exception.voidmarshal(com.highdeal.hmi.DataBuffer buffer) Writes theobjectinto awritable data buffer.voidunmarshal(com.highdeal.hmi.IDataBuffer buffer) Reads theobjectfrom areadable data buffer.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MessageAuthenticationException
public MessageAuthenticationException(com.highdeal.hmi.IDataBuffer buffer) Constructs an exception from a data buffer.- Parameters:
buffer- the data buffer
-
MessageAuthenticationException
Constructs an exception with a reason and a message.- Parameters:
reason- TheIAuthenticationListener.Reasonof the exceptionmessage- The text message of the exception
-
-
Method Details
-
getReason
Gets theIAuthenticationListener.Reasonof the exception.- Returns:
- the
IAuthenticationListener.Reasonof the exception
-
getMessage
- Overrides:
getMessagein classThrowable
-
marshal
public void marshal(com.highdeal.hmi.DataBuffer buffer) Description copied from interface:com.highdeal.hmi.IByteMarshallableWrites theobjectinto awritable data buffer.- Specified by:
marshalin interfacecom.highdeal.hmi.IByteMarshallable- Parameters:
buffer- a buffer whereobjecthas to be serialized into
-
unmarshal
public void unmarshal(com.highdeal.hmi.IDataBuffer buffer) Description copied from interface:com.highdeal.hmi.IByteMarshallableReads theobjectfrom areadable data buffer.- Specified by:
unmarshalin interfacecom.highdeal.hmi.IByteMarshallable- Parameters:
buffer- a buffer whereserialized objectwill be read from
-