User: juhalindfors
  Date: 02/03/13 04:36:21

  Modified:    src/main/javax/management Tag: BranchMX_1_0
                        MBeanException.java NotificationFilterSupport.java
                        ReflectionException.java RuntimeErrorException.java
                        RuntimeMBeanException.java
                        RuntimeOperationsException.java
  Log:
  print out target exceptions
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.2.2.1   +19 -1     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.2
  retrieving revision 1.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- MBeanException.java       15 Dec 2001 17:25:41 -0000      1.2
  +++ MBeanException.java       13 Mar 2002 12:36:21 -0000      1.2.2.1
  @@ -9,8 +9,16 @@
   /**
    * A wrapper for exceptions thrown by MBeans.
    *
  + * @author <a href="mailto:[EMAIL PROTECTED]";>Juha Lindfors</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Adrian Brock</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.2.2.1 $
  + *
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20020313 Juha Lindfors:</b>
  + * <ul>
  + * <li> Overriding toString() to print out the root exception </li>
  + * </ul>
    */
   public class MBeanException
      extends JMException
  @@ -62,7 +70,17 @@
      }
   
      // JMException overrides -----------------------------------------
  +   /**
  +    * Returns a string representation of this exception. The returned string
  +    * contains this exception name, message and a string representation of the
  +    * target exception if it has been set.
  +    *
  +    * @return string representation of this exception
  +    */
  +   public String toString()
  +   {
  +      return "MBeanException: " + getMessage() + ((e == null) ? "" : "\nCause: " + 
e.toString());
  +   }
   
  -   // Private -------------------------------------------------------
   }
   
  
  
  
  1.3.2.1   +2 -2      jmx/src/main/javax/management/NotificationFilterSupport.java
  
  Index: NotificationFilterSupport.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jmx/src/main/javax/management/NotificationFilterSupport.java,v
  retrieving revision 1.3
  retrieving revision 1.3.2.1
  diff -u -r1.3 -r1.3.2.1
  --- NotificationFilterSupport.java    8 Feb 2002 21:17:54 -0000       1.3
  +++ NotificationFilterSupport.java    13 Mar 2002 12:36:21 -0000      1.3.2.1
  @@ -9,6 +9,8 @@
   import java.util.Enumeration;
   import java.util.Vector;
   
  +import java.io.Serializable;
  +
   /**
    * An implementation of the {@link NotificationFilter} interface.<p>
    *
  @@ -19,8 +21,6 @@
    * it starts with an enabled string.
    * 
    * @author  <a href="mailto:[EMAIL PROTECTED]";>Adrian Brock</a>.
  - * @version $Revision: 1.3 $
  - *
    */
   public class NotificationFilterSupport
     implements NotificationFilter
  
  
  
  1.3.2.1   +15 -1     jmx/src/main/javax/management/ReflectionException.java
  
  Index: ReflectionException.java
  ===================================================================
  RCS file: /cvsroot/jboss/jmx/src/main/javax/management/ReflectionException.java,v
  retrieving revision 1.3
  retrieving revision 1.3.2.1
  diff -u -r1.3 -r1.3.2.1
  --- ReflectionException.java  8 Mar 2002 11:49:17 -0000       1.3
  +++ ReflectionException.java  13 Mar 2002 12:36:21 -0000      1.3.2.1
  @@ -12,7 +12,14 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Juha Lindfors</a>.
    * @author <a href="mailto:[EMAIL PROTECTED]";>Adrian Brock</a>
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.3.2.1 $
  + *
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20020313 Juha Lindfors:</b>
  + * <ul>
  + * <li> Overriding toString() to print out the root exception </li>
  + * </ul>
    */
   public class ReflectionException
      extends JMException
  @@ -64,6 +71,13 @@
      }
   
      // JMException overrides -----------------------------------------
  +   /**
  +    * Returns a string representation of this exception. The returned string
  +    * contains this exception name, message and a string representation of the
  +    * target exception if it has been set.
  +    *
  +    * @return string representation of this exception
  +    */
      public String toString()
      {
         return "ReflectionException: " + getMessage() + ((e == null) ? "" : "\nCause: 
" + e.toString());
  
  
  
  1.2.2.1   +19 -0     jmx/src/main/javax/management/RuntimeErrorException.java
  
  Index: RuntimeErrorException.java
  ===================================================================
  RCS file: /cvsroot/jboss/jmx/src/main/javax/management/RuntimeErrorException.java,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- RuntimeErrorException.java        15 Dec 2001 19:40:52 -0000      1.2
  +++ RuntimeErrorException.java        13 Mar 2002 12:36:21 -0000      1.2.2.1
  @@ -10,8 +10,16 @@
   /**
    * Thrown when a java.lang.error occurs.
    *
  + * @author <a href="mailto:[EMAIL PROTECTED]";>Juha Lindfors</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Adrian Brock</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.2.2.1 $
  + *
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20020313 Juha Lindfors:</b>
  + * <ul>
  + * <li> Overriding toString() to print out the root exception </li>
  + * </ul>
    */
   public class RuntimeErrorException
      extends JMRuntimeException
  @@ -64,6 +72,17 @@
      }
   
      // JMRuntimeException overrides ----------------------------------
  +   /**
  +    * Returns a string representation of this exception. The returned string
  +    * contains this exception name, message and a string representation of the
  +    * target exception if it has been set.
  +    *
  +    * @return string representation of this exception
  +    */
  +   public String toString()
  +   {
  +      return "RuntimeErrorException: " + getMessage() + ((e == null) ? "" : 
"\nCause: " + e.toString());
  +   }
   
      // Private -------------------------------------------------------
   }
  
  
  
  1.2.2.1   +19 -0     jmx/src/main/javax/management/RuntimeMBeanException.java
  
  Index: RuntimeMBeanException.java
  ===================================================================
  RCS file: /cvsroot/jboss/jmx/src/main/javax/management/RuntimeMBeanException.java,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- RuntimeMBeanException.java        15 Dec 2001 19:40:52 -0000      1.2
  +++ RuntimeMBeanException.java        13 Mar 2002 12:36:21 -0000      1.2.2.1
  @@ -9,8 +9,16 @@
   /**
    * Wraps runtime exceptions thrown by MBeans.
    *
  + * @author <a href="mailto:[EMAIL PROTECTED]";>Juha Lindfors</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Adrian Brock</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.2.2.1 $
  + *
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20020313 Juha Lindfors:</b>
  + * <ul>
  + * <li> Overriding toString() to print out the root exception </li>
  + * </ul>
    */
   public class RuntimeMBeanException
      extends JMRuntimeException
  @@ -63,6 +71,17 @@
      }
   
      // JMRuntimeException overrides ----------------------------------
  +   /**
  +    * Returns a string representation of this exception. The returned string
  +    * contains this exception name, message and a string representation of the
  +    * target exception if it has been set.
  +    *
  +    * @return string representation of this exception
  +    */
  +   public String toString()
  +   {
  +      return "RuntimeMBeanException: " + getMessage() + ((e == null) ? "" : 
"\nCause: " + e.toString());
  +   }
   
      // Private -------------------------------------------------------
   }
  
  
  
  1.2.2.1   +19 -0     jmx/src/main/javax/management/RuntimeOperationsException.java
  
  Index: RuntimeOperationsException.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jmx/src/main/javax/management/RuntimeOperationsException.java,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- RuntimeOperationsException.java   15 Dec 2001 19:40:52 -0000      1.2
  +++ RuntimeOperationsException.java   13 Mar 2002 12:36:21 -0000      1.2.2.1
  @@ -9,8 +9,16 @@
   /**
    * Wraps runtime exceptions thrown when performing operations on MBeans.
    *
  + * @author <a href="mailto:[EMAIL PROTECTED]>Juha Lindfors</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Adrian Brock</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.2.2.1 $
  + *
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20020313 Juha Lindfors:</b>
  + * <ul>
  + * <li> Overriding toString() to print out the root exception </li>
  + * </ul>
    */
   public class RuntimeOperationsException
      extends JMRuntimeException
  @@ -63,6 +71,17 @@
      }
   
      // JMRuntimeException overrides ----------------------------------
  +   /**
  +    * Returns a string representation of this exception. The returned string
  +    * contains this exception name, message and a string representation of the
  +    * target exception if it has been set.
  +    *
  +    * @return string representation of this exception
  +    */
  +   public String toString()
  +   {
  +      return "RuntimeOperationsException: " + getMessage() + ((e == null) ? "" : 
"\nCause: " + e.toString());
  +   }
   
      // Private -------------------------------------------------------
   }
  
  
  

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

Reply via email to