1. /*
  2. * @(#)InvalidApplicationException.java 4.18 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;
  8. /**
  9. * Thrown when an attempt is made to apply either of the following: A
  10. * subquery expression to an MBean or a qualified attribute expression
  11. * to an MBean of the wrong class. This exception is used internally
  12. * by JMX during the evaluation of a query. User code does not
  13. * usually see it.
  14. *
  15. * @since 1.5
  16. */
  17. public class InvalidApplicationException extends Exception {
  18. /* Serial version */
  19. private static final long serialVersionUID = -3048022274675537269L;
  20. /**
  21. * @serial The object representing the class of the MBean
  22. */
  23. private Object val;
  24. /**
  25. * Constructs an <CODE>InvalidApplicationException</CODE> with the specified <CODE>Object</CODE>.
  26. *
  27. * @param val the detail message of this exception.
  28. */
  29. public InvalidApplicationException(Object val) {
  30. this.val = val;
  31. }
  32. }