Class WrongAttributeAssignmentException

java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.metacentrum.perun.core.api.exceptions.PerunException
cz.metacentrum.perun.core.api.exceptions.WrongAttributeAssignmentException
All Implemented Interfaces:
Serializable

public class WrongAttributeAssignmentException extends PerunException
Thrown while assigning attribute to wrong entity. For example if you try to set value for the facility to attribute which is only for resources.
Author:
Slavek Licehammer
See Also:
  • Constructor Details

    • WrongAttributeAssignmentException

      public WrongAttributeAssignmentException(String message)
      Simple constructor with a message
      Parameters:
      message - message with details about the cause
    • WrongAttributeAssignmentException

      public WrongAttributeAssignmentException(String message, Throwable cause)
      Constructor with a message and Throwable object
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
    • WrongAttributeAssignmentException

      public WrongAttributeAssignmentException(Throwable cause)
      Constructor with a Throwable object
      Parameters:
      cause - Throwable that caused throwing of this exception
    • WrongAttributeAssignmentException

      public WrongAttributeAssignmentException(AttributeDefinition attribute)
      Constructor with the attribute
      Parameters:
      attribute - attribute that was supposed to be assigned to the wrong entity
  • Method Details

    • getAttribute

      public AttributeDefinition getAttribute()
      Getter for the attribute
      Returns:
      attribute that was supposed to be assigned to the wrong entity