psdi.util

Class ApplicationError

  • java.lang.Object
    • psdi.util.ApplicationError
  • All Implemented Interfaces:
    java.io.Serializable


    public class ApplicationError
    extends java.lang.Object
    implements java.io.Serializable
    This class is used as a means for the Application Framework (UI) to associate an error with a Mbo's attribute. The error will be stored in the attribute MboValue and be available thru the attributes MboValueData. It's up to the Application Framework to define the structure of the implementing class as it will ultimately only be used by the Application Framework. The Application Framework can have multiple UI elements bound to the same Mbo attribute this allows the error to easily be associated with all of them. Plus allows the Mbo to clear the error when the Mbo is saved or setValue is called on the attribute by either the Application Framework or through field validation and/or actions.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object o)
      Returns true of the object passed in an ApplicationError instance and the error id matches the error id of this class.
      long getErrorId()
      Returns the error id accociated with the error.
      MXException getException()
      Returns the MXException associated with the error.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ApplicationError

        public ApplicationError(MXException exception)
    • Method Detail

      • getException

        public MXException getException()
        Returns the MXException associated with the error. Can return null.
        Returns:
      • getErrorId

        public long getErrorId()
        Returns the error id accociated with the error. Used by the app framework as a reference to obtain the corresponding error in the app framework
        Returns:
      • equals

        public boolean equals(java.lang.Object o)
        Returns true of the object passed in an ApplicationError instance and the error id matches the error id of this class.
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)