Class WrongReferenceAttributeValueException
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.WrongReferenceAttributeValueException
- All Implemented Interfaces:
Serializable
Attribute which is reference for used attribute has illegal value. Because of it, we can't determinate if used
attribute have correct value.
- Author:
- Slavek Licehammer, Michal Prochazka
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructor with the attributeWrongReferenceAttributeValueException
(AttributeDefinition attribute, AttributeDefinition referenceAttribute) Constructor with the attribute and the reference attributeWrongReferenceAttributeValueException
(AttributeDefinition attribute, AttributeDefinition referenceAttribute, Object attributeHolderPrimary, Object attributeHolderSecondary, Object refAttributeHolderPrimary, Object refAttributeHolderSecondary, String message) Constructor with the attribute, the reference attribute, primary attributeHolder, secondary attributeHolder, primary attributeHolder of the referenceAttribute, secondary attributeHolder of the referenceAttribute and a messageWrongReferenceAttributeValueException
(AttributeDefinition attribute, AttributeDefinition referenceAttribute, Object attributeHolderPrimary, Object attributeHolderSecondary, Object refAttributeHolderPrimary, Object refAttributeHolderSecondary, String message, Throwable cause) Constructor with the attribute, the reference attribute, primary attributeHolder, secondary attributeHolder, primary attributeHolder of the referenceAttribute, secondary attributeHolder of the referenceAttribute, a message and the Throwable objectWrongReferenceAttributeValueException
(AttributeDefinition attribute, AttributeDefinition referenceAttribute, Object attributeHolderPrimary, Object attributeHolderSecondary, String message) Constructor with the attribute, the reference attribute, primary attributHolder, secondary attributeHolder and a messageWrongReferenceAttributeValueException
(AttributeDefinition attribute, AttributeDefinition referenceAttribute, String message) Constructor with the attribute, the reference attribute and a messageWrongReferenceAttributeValueException
(AttributeDefinition attribute, AttributeDefinition referenceAttribute, String message, Throwable cause) Constructor with the attribute, the reference attribute, a message and the Throwable objectWrongReferenceAttributeValueException
(AttributeDefinition attribute, AttributeDefinition referenceAttribute, Throwable cause) Constructor with the attribute, the reference attribute and the Throwable objectWrongReferenceAttributeValueException
(AttributeDefinition attribute, String message) Constructor with the attribute and a messageSimple constructor with a messageWrongReferenceAttributeValueException
(String message, Throwable cause) Constructor with a message and Throwable objectConstructor with a Throwable object -
Method Summary
Modifier and TypeMethodDescriptionGetter for the attributeGetter for the referenceAttributeMethods inherited from class cz.metacentrum.perun.core.api.exceptions.PerunException
getErrorId, getFriendlyMessageTemplate, getMessage, getName, setErrorId
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WrongReferenceAttributeValueException
Simple constructor with a message- Parameters:
message
- message with details about the cause
-
WrongReferenceAttributeValueException
Constructor with a message and Throwable object- Parameters:
message
- message with details about the causecause
- Throwable that caused throwing of this exception
-
WrongReferenceAttributeValueException
Constructor with a Throwable object- Parameters:
cause
- Throwable that caused throwing of this exception
-
WrongReferenceAttributeValueException
Constructor with the attribute- Parameters:
attribute
- attribute whose referenceAttribute has illegal value
-
WrongReferenceAttributeValueException
Constructor with the attribute and a message- Parameters:
attribute
- attribute whose referenceAttribute has illegal valuemessage
- message with details about the cause
-
WrongReferenceAttributeValueException
public WrongReferenceAttributeValueException(AttributeDefinition attribute, AttributeDefinition referenceAttribute) Constructor with the attribute and the reference attribute- Parameters:
attribute
- attribute whose referenceAttribute has illegal valuereferenceAttribute
- the attribute whose value is illegal
-
WrongReferenceAttributeValueException
public WrongReferenceAttributeValueException(AttributeDefinition attribute, AttributeDefinition referenceAttribute, Throwable cause) Constructor with the attribute, the reference attribute and the Throwable object- Parameters:
attribute
- attribute whose referenceAttribute has illegal valuereferenceAttribute
- the attribute whose value is illegalcause
- Throwable that caused throwing of this exception
-
WrongReferenceAttributeValueException
public WrongReferenceAttributeValueException(AttributeDefinition attribute, AttributeDefinition referenceAttribute, String message) Constructor with the attribute, the reference attribute and a message- Parameters:
attribute
- attribute whose referenceAttribute has illegal valuereferenceAttribute
- the attribute whose value is illegalmessage
- message with details about the cause
-
WrongReferenceAttributeValueException
public WrongReferenceAttributeValueException(AttributeDefinition attribute, AttributeDefinition referenceAttribute, String message, Throwable cause) Constructor with the attribute, the reference attribute, a message and the Throwable object- Parameters:
attribute
- attribute whose referenceAttribute has illegal valuereferenceAttribute
- the attribute whose value is illegalmessage
- message with details about the causecause
- Throwable that caused throwing of this exception
-
WrongReferenceAttributeValueException
public WrongReferenceAttributeValueException(AttributeDefinition attribute, AttributeDefinition referenceAttribute, Object attributeHolderPrimary, Object attributeHolderSecondary, String message) Constructor with the attribute, the reference attribute, primary attributHolder, secondary attributeHolder and a message- Parameters:
attribute
- attribute whose referenceAttribute has illegal valuereferenceAttribute
- the attribute whose value is illegalattributeHolderPrimary
- primary entity holding the attributeattributeHolderSecondary
- secondary entity holding the attributemessage
- message with details about the cause
-
WrongReferenceAttributeValueException
public WrongReferenceAttributeValueException(AttributeDefinition attribute, AttributeDefinition referenceAttribute, Object attributeHolderPrimary, Object attributeHolderSecondary, Object refAttributeHolderPrimary, Object refAttributeHolderSecondary, String message) Constructor with the attribute, the reference attribute, primary attributeHolder, secondary attributeHolder, primary attributeHolder of the referenceAttribute, secondary attributeHolder of the referenceAttribute and a message- Parameters:
attribute
- attribute whose referenceAttribute has illegal valuereferenceAttribute
- the attribute whose value is illegalattributeHolderPrimary
- primary entity holding the attributeattributeHolderSecondary
- secondary entity holding the attributerefAttributeHolderPrimary
- primary entity holding the attribute of the referenceAttributerefAttributeHolderSecondary
- secondary entity holding the attribute of the referenceAttributemessage
- message with details about the cause
-
WrongReferenceAttributeValueException
public WrongReferenceAttributeValueException(AttributeDefinition attribute, AttributeDefinition referenceAttribute, Object attributeHolderPrimary, Object attributeHolderSecondary, Object refAttributeHolderPrimary, Object refAttributeHolderSecondary, String message, Throwable cause) Constructor with the attribute, the reference attribute, primary attributeHolder, secondary attributeHolder, primary attributeHolder of the referenceAttribute, secondary attributeHolder of the referenceAttribute, a message and the Throwable object- Parameters:
attribute
- attribute whose referenceAttribute has illegal valuereferenceAttribute
- the attribute whose value is illegalattributeHolderPrimary
- primary entity holding the attributeattributeHolderSecondary
- secondary entity holding the attributerefAttributeHolderPrimary
- primary entity holding the attribute of the referenceAttributerefAttributeHolderSecondary
- secondary entity holding the attribute of the referenceAttributemessage
- message with details about the causecause
- Throwable that caused throwing of this exception
-
-
Method Details
-
getAttribute
Getter for the attribute- Overrides:
getAttribute
in classAttributeValueException
- Returns:
- the attribute
-
getReferenceAttribute
Getter for the referenceAttribute- Returns:
- the attribute whose value is illegal
-