Class WrongAttributeValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.metacentrum.perun.core.api.exceptions.PerunException
cz.metacentrum.perun.core.api.exceptions.AttributeValueException
cz.metacentrum.perun.core.api.exceptions.WrongAttributeValueException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- InvalidHtmlInputException
Thrown when the attribute has wrong/illegal value.
- Author:
- Slavek Licehammer
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionWrongAttributeValueException(Attribute attribute) Constructor with the attributeWrongAttributeValueException(Attribute attribute, Object attributeHolder, Object attributeHolderSecondary) Constructor with the attribute, primary attributeHolder and secondary attributeHolderWrongAttributeValueException(Attribute attribute, Object attributeHolder, Object attributeHolderSecondary, String message) Constructor with the attribute, primary attributeHolder, secondary attributeHolder and a messageWrongAttributeValueException(Attribute attribute, Object attributeHolder, String message) Constructor with the attribute, attributeHolder and a messageWrongAttributeValueException(Attribute attribute, Object attributeHolder, String message, Throwable cause) Constructor with the attribute, attributeHolder, a message and the Throwable objectWrongAttributeValueException(Attribute attribute, String message) Constructor with the attribute and a messageWrongAttributeValueException(Attribute attribute, String message, Throwable cause) Constructor with the attribute, the message and the Throwable objectWrongAttributeValueException(Attribute attribute, Throwable cause) Constructor with the attribute and the Throwable objectWrongAttributeValueException(String message) Simple constructor with a messageWrongAttributeValueException(String message, Throwable cause) Constructor with a message and Throwable objectConstructor with a Throwable object
- 
Method SummaryModifier and TypeMethodDescriptionGetter for the attributeGetter for the primary attributeHolderGetter for the secondary attributeHolderReturn template of a message that is more user friendly and can be displayed in GUI.Methods inherited from class cz.metacentrum.perun.core.api.exceptions.PerunExceptiongetErrorId, getMessage, getName, setErrorIdMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
WrongAttributeValueExceptionSimple constructor with a message- Parameters:
- message- message with details about the cause
 
- 
WrongAttributeValueExceptionConstructor with a message and Throwable object- Parameters:
- message- message with details about the cause
- cause- Throwable that caused throwing of this exception
 
- 
WrongAttributeValueExceptionConstructor with a Throwable object- Parameters:
- cause- Throwable that caused throwing of this exception
 
- 
WrongAttributeValueExceptionConstructor with the attribute- Parameters:
- attribute- the attribute whose value is illegal
 
- 
WrongAttributeValueExceptionpublic WrongAttributeValueException(Attribute attribute, Object attributeHolder, Object attributeHolderSecondary, String message) Constructor with the attribute, primary attributeHolder, secondary attributeHolder and a message- Parameters:
- attribute- the attribute whose value is illegal
- attributeHolder- primary entity holding the attribute
- attributeHolderSecondary- secondary entity holding the attribute
- message- message with details about the cause
 
- 
WrongAttributeValueExceptionpublic WrongAttributeValueException(Attribute attribute, Object attributeHolder, Object attributeHolderSecondary) Constructor with the attribute, primary attributeHolder and secondary attributeHolder- Parameters:
- attribute- the attribute whose value is illegal
- attributeHolder- primary entity holding the attribute
- attributeHolderSecondary- secondary entity holding the attribute
 
- 
WrongAttributeValueExceptionConstructor with the attribute, attributeHolder and a message- Parameters:
- attribute- the attribute whose value is illegal
- attributeHolder- entity holding the attribute
- message- message with details about the cause
 
- 
WrongAttributeValueExceptionpublic WrongAttributeValueException(Attribute attribute, Object attributeHolder, String message, Throwable cause) Constructor with the attribute, attributeHolder, a message and the Throwable object- Parameters:
- attribute- the attribute whose value is illegal
- attributeHolder- entity holding the attribute
- message- message with details about the cause
- cause- Throwable that caused throwing of this exception
 
- 
WrongAttributeValueExceptionConstructor with the attribute and the Throwable object- Parameters:
- attribute- attribute whose value is not correct
- cause- Throwable that caused throwing of this exception
 
- 
WrongAttributeValueExceptionConstructor with the attribute and a message- Parameters:
- attribute- attribute whose value is not correct
- message- message with details about the cause
 
- 
WrongAttributeValueExceptionConstructor with the attribute, the message and the Throwable object- Parameters:
- attribute- attribute whose value is not correct
- message- message with details about the cause
- cause- Throwable that caused throwing of this exception
 
 
- 
- 
Method Details- 
getAttributeGetter for the attribute- Overrides:
- getAttributein class- AttributeValueException
- Returns:
- the attribute whose value is not correct
 
- 
getAttributeHolderGetter for the primary attributeHolder- Returns:
- primary entity holding the attribute
 
- 
getAttributeHolderSecondaryGetter for the secondary attributeHolder- Returns:
- secondary entity holding the attribute
 
- 
getFriendlyMessageTemplateDescription copied from class:PerunExceptionReturn template of a message that is more user friendly and can be displayed in GUI. If an exception doesn't implement this message, returns null as default.There can be used placeholder in the template, using format '%{field}%' (e.g.: '%{invalidGroup}%') where the 'group' should be a field of the given exception, that can be accessed. - Overrides:
- getFriendlyMessageTemplatein class- PerunException
- Returns:
- template of a friendly message or null, if no template is defined for given exception
 
 
-