java.lang.Object
com.aquima.interactions.portal.model.session.EventError
All Implemented Interfaces:
IMessage, IErrorMessage, Serializable

public class EventError extends Object implements IErrorMessage
This object hold a single error that was encountered during the processing of the event.
Since:
5.1
Author:
O. Kerpershoek
See Also:
  • Constructor Details

  • Method Details

    • getOrigin

      public IFieldValidation getOrigin()
    • setOrigin

      protected void setOrigin(IFieldValidation fieldValidation)
    • setMessage

      public void setMessage(IMultilingualText text)
    • setRejectedValue

      protected void setRejectedValue(Serializable rejectedValue)
    • getRejectedValue

      public Serializable getRejectedValue()
    • getValueReference

      public ValueReference getValueReference()
      Description copied from interface: IErrorMessage
      This method returns the attribute reference the message is defined for. For global error or warning messages, this method will return a null value.
      Specified by:
      getValueReference in interface IErrorMessage
      Returns:
      the attribute reference the message is defined for.
    • getText

      public IMultilingualText getText()
      Description copied from interface: IMessage
      This method returns a text object containing the actual content of the message.
      Specified by:
      getText in interface IMessage
      Returns:
      a text object containing the actual content of the message.
    • getTrace

      public Throwable getTrace()
      Description copied from interface: IMessage
      This method returns the cause of the error or warning message.
      Specified by:
      getTrace in interface IMessage
      Returns:
      The cause of the message, or null when not available.
    • isError

      public boolean isError()
      Description copied from interface: IMessage
      This method returns a boolean indicating if the message is an error message.
      Specified by:
      isError in interface IMessage
      Returns:
      a boolean indicating if the message is an error message.
    • isWarning

      public boolean isWarning()
      Description copied from interface: IMessage
      This method returns a boolean indicating if the message is a warning message.
      Specified by:
      isWarning in interface IMessage
      Returns:
      a boolean indicating if the message is a warning message.
    • getSource

      public String getSource()
      Description copied from interface: IMessage
      This method returns the object causing this message to be created.
      Specified by:
      getSource in interface IMessage
      Returns:
      The source of the message.
    • getElementId

      public RuntimeKey getElementId()
      Description copied from interface: IErrorMessage
      This method returns the ID of the element that generated the error/warning.
      Specified by:
      getElementId in interface IErrorMessage
      Returns:
      the ID of the element that generated the error/warning.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object