Class ExceptionPropertyAndMessage


  • public class ExceptionPropertyAndMessage
    extends java.lang.Object
    Class storing a property name and a message name to display if the property is in error. To be used with the getErrorsFromDataIntegrityViolationException method of BaseController
    • Constructor Summary

      Constructors 
      Constructor Description
      ExceptionPropertyAndMessage​(java.lang.String propertyName, java.lang.String messageName)
      Create an ExceptionPropertyAndMessage storing the affected property name and the message name to display if that property is in error.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessageName()  
      java.lang.String getPropertyName()  
      • Methods inherited from class java.lang.Object

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

      • ExceptionPropertyAndMessage

        public ExceptionPropertyAndMessage​(java.lang.String propertyName,
                                           java.lang.String messageName)
        Create an ExceptionPropertyAndMessage storing the affected property name and the message name to display if that property is in error.
        Parameters:
        propertyName - The name of the property
        messageName - The message name to display if an error occurs
    • Method Detail

      • getPropertyName

        public java.lang.String getPropertyName()
        Returns:
        the propertyName
      • getMessageName

        public java.lang.String getMessageName()
        Returns:
        the messageName