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 Details

    • MessageAuthenticationException

      public MessageAuthenticationException(com.highdeal.hmi.IDataBuffer buffer)
      Constructs an exception from a data buffer.
      Parameters:
      buffer - the data buffer
    • MessageAuthenticationException

      public MessageAuthenticationException(IAuthenticationListener.Reason reason, String message)
      Constructs an exception with a reason and a message.
      Parameters:
      reason - The IAuthenticationListener.Reason of the exception
      message - The text message of the exception
  • Method Details

    • getReason

      public IAuthenticationListener.Reason getReason()
      Gets the IAuthenticationListener.Reason of the exception.
      Returns:
      the IAuthenticationListener.Reason of the exception
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • marshal

      public void marshal(com.highdeal.hmi.DataBuffer buffer)
      Description copied from interface: com.highdeal.hmi.IByteMarshallable
      Writes the object into a writable data buffer.
      Specified by:
      marshal in interface com.highdeal.hmi.IByteMarshallable
      Parameters:
      buffer - a buffer where object has to be serialized into
    • unmarshal

      public void unmarshal(com.highdeal.hmi.IDataBuffer buffer)
      Description copied from interface: com.highdeal.hmi.IByteMarshallable
      Reads the object from a readable data buffer.
      Specified by:
      unmarshal in interface com.highdeal.hmi.IByteMarshallable
      Parameters:
      buffer - a buffer where serialized object will be read from