User: juhalindfors
Date: 02/03/13 06:44:53
Modified: src/main/javax/management MBeanException.java
NotificationFilterSupport.java
ReflectionException.java RuntimeErrorException.java
RuntimeMBeanException.java
RuntimeOperationsException.java
Log:
merge from 1.0 branch up to RelMX_1_0_0_3 build
Revision Changes Path
1.3 +20 -2 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.3
diff -u -r1.2 -r1.3
--- MBeanException.java 15 Dec 2001 17:25:41 -0000 1.2
+++ MBeanException.java 13 Mar 2002 14:44:52 -0000 1.3
@@ -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$
+ *
+ * <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.4 +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.4
diff -u -r1.3 -r1.4
--- NotificationFilterSupport.java 8 Feb 2002 21:17:54 -0000 1.3
+++ NotificationFilterSupport.java 13 Mar 2002 14:44:52 -0000 1.4
@@ -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$
- *
*/
public class NotificationFilterSupport
implements NotificationFilter
1.4 +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.4
diff -u -r1.3 -r1.4
--- ReflectionException.java 8 Mar 2002 11:49:17 -0000 1.3
+++ ReflectionException.java 13 Mar 2002 14:44:52 -0000 1.4
@@ -13,6 +13,13 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>.
* @author <a href="mailto:[EMAIL PROTECTED]">Adrian Brock</a>
* @version $Revision$
+ *
+ * <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.3 +20 -1 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.3
diff -u -r1.2 -r1.3
--- RuntimeErrorException.java 15 Dec 2001 19:40:52 -0000 1.2
+++ RuntimeErrorException.java 13 Mar 2002 14:44:52 -0000 1.3
@@ -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$
+ *
+ * <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.3 +20 -1 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.3
diff -u -r1.2 -r1.3
--- RuntimeMBeanException.java 15 Dec 2001 19:40:52 -0000 1.2
+++ RuntimeMBeanException.java 13 Mar 2002 14:44:52 -0000 1.3
@@ -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$
+ *
+ * <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.3 +20 -1 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.3
diff -u -r1.2 -r1.3
--- RuntimeOperationsException.java 15 Dec 2001 19:40:52 -0000 1.2
+++ RuntimeOperationsException.java 13 Mar 2002 14:44:52 -0000 1.3
@@ -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$
+ *
+ * <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