1. /*
  2. * @(#)MBeanRegistrationException.java 4.16 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. * Wraps exceptions thrown by the preRegister(), preDeregister() methods
  10. * of the <CODE>MBeanRegistration</CODE> interface.
  11. *
  12. * @since 1.5
  13. */
  14. public class MBeanRegistrationException extends MBeanException {
  15. /* Serial version */
  16. private static final long serialVersionUID = 4482382455277067805L;
  17. /**
  18. * Creates an <CODE>MBeanRegistrationException</CODE> that wraps
  19. * the actual <CODE>java.lang.Exception</CODE>.
  20. *
  21. * @param e the wrapped exception.
  22. */
  23. public MBeanRegistrationException(java.lang.Exception e) {
  24. super(e) ;
  25. }
  26. /**
  27. * Creates an <CODE>MBeanRegistrationException</CODE> that wraps
  28. * the actual <CODE>java.lang.Exception</CODE> with a detailed
  29. * message.
  30. *
  31. * @param e the wrapped exception.
  32. * @param message the detail message.
  33. */
  34. public MBeanRegistrationException(java.lang.Exception e, String message) {
  35. super(e, message) ;
  36. }
  37. }