User: ejort   
  Date: 01/12/15 09:25:41

  Modified:    src/main/javax/management MBeanException.java
  Log:
  More javadoc
  
  Revision  Changes    Path
  1.2       +48 -8     jmx/src/main/javax/management/MBeanException.java
  
  Index: MBeanException.java
  ===================================================================
  RCS file: /cvsroot/jboss/jmx/src/main/javax/management/MBeanException.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MBeanException.java       2001/12/03 01:42:58     1.1
  +++ MBeanException.java       2001/12/15 17:25:41     1.2
  @@ -1,28 +1,68 @@
   /*
  - * LGPL
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
    */
   package javax.management;
   
  +/**
  + * A wrapper for exceptions thrown by MBeans.
  + *
  + * @author <a href="mailto:[EMAIL PROTECTED]";>Adrian Brock</a>
  + * @version $Revision: 1.2 $
  + */
   public class MBeanException
  -   extends JMException {
  -
  +   extends JMException
  +{
  +   // Attributes ----------------------------------------------------
  +
  +   /**
  +    * The wrapped exception.
  +    */
      private Exception e = null;
  +
  +   // Static --------------------------------------------------------
   
  -   public MBeanException(java.lang.Exception e) {
  +   // Constructors --------------------------------------------------
  +
  +   /**
  +    * Construct a new MBeanException from a given exception.
  +    *
  +    * @param e the exception to wrap.
  +    */
  +   public MBeanException(Exception e)
  +   {
         super();
         this.e = e;
      }
   
  -   public MBeanException(java.lang.Exception e,
  -                         java.lang.String message) {
  +   /**
  +    * Construct a new MBeanException from a given exception and message.
  +    *
  +    * @param e the exception to wrap.
  +    * @param message the specified message.
  +    */
  +   public MBeanException(Exception e, String message)
  +   {
         super(message);
         this.e = e;
      }
  +
  +   // Public --------------------------------------------------------
   
  -   public java.lang.Exception getTargetException() {
  -      return e;
  +   /**
  +    * Retrieves the wrapped exception.
  +    *
  +    * @return the wrapped exception.
  +    */
  +   public Exception getTargetException()
  +   {
  +     return e;
      }
   
  +   // JMException overrides -----------------------------------------
   
  +   // Private -------------------------------------------------------
   }
   
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to