Interface ValidationFailure

    • Method Detail

      • getSource

        Object getSource()
        Returns the object that has generated the failure. For example, if a Person must have a name and a ValidationFailure is created when the user attempts to save it, the Person object would be the failure source.
        Returns:
        the failure's source or null in case a source cannot be defined.
      • getError

        Object getError()
        Returns an user defined error object.
      • getDescription

        String getDescription()
        Returns a String representation of the error object. This is used in log messages and exceptions.