1. /*
  2. * @(#)InvalidRoleValueException.java 1.17 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.management.relation;
  8. /**
  9. * Role value is invalid.
  10. * This exception is raised when, in a role, the number of referenced MBeans
  11. * in given value is less than expected minimum degree, or the number of
  12. * referenced MBeans in provided value exceeds expected maximum degree, or
  13. * one referenced MBean in the value is not an Object of the MBean
  14. * class expected for that role, or an MBean provided for that role does not
  15. * exist.
  16. *
  17. * @since 1.5
  18. */
  19. public class InvalidRoleValueException extends RelationException {
  20. /* Serial version */
  21. private static final long serialVersionUID = -2066091747301983721L;
  22. /**
  23. * Default constructor, no message put in exception.
  24. */
  25. public InvalidRoleValueException() {
  26. super();
  27. }
  28. /**
  29. * Constructor with given message put in exception.
  30. *
  31. * @param message the detail message.
  32. */
  33. public InvalidRoleValueException(String message) {
  34. super(message);
  35. }
  36. }