Class ExceptionPropertyAndMessage
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.ria.utilities.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 ofBaseController
-
-
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()
-
-
-
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 propertymessageName
- The message name to display if an error occurs
-
-