User: user57
Date: 01/08/21 16:47:10
Modified:src/main/javax/jms JMSException.java
Log:
o fixed setLinkedException sig to be serial compatible with JMS 1.0.2
(needed to be synchronized and have its param name as 'ex' instead of
'linkedException').
Revision ChangesPath
1.2 +33 -29jboss-j2ee/src/main/javax/jms/JMSException.java
Index: JMSException.java
===
RCS file: /cvsroot/jboss/jboss-j2ee/src/main/javax/jms/JMSException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- JMSException.java 2001/04/01 13:43:20 1.1
+++ JMSException.java 2001/08/21 23:47:10 1.2
@@ -10,24 +10,33 @@
/**
* This is the root class of all JMS exceptions.
*
- * It provides following information:
- *
+ * It provides following information:
*
- * provider-specific string describing the error - This string is the
standard Java exception message, and is available via getMessage().
+ * provider-specific string describing the error -
+ * This string is the standard Java exception message,
+ * and is available via getMessage().
* provider-specific, string error code
- * reference to another exception - Often a JMS exception will be the result
of a lower level problem. If appropriate, this lower level exception can be linked to
the JMS exception.
+ * reference to another exception - Often a JMS exception will be
+ * the result of a lower level problem. If appropriate, this lower
+ * level exception can be linked to the JMS exception.
*
*
* @author Chris Kimpton ([EMAIL PROTECTED])
- * @version $Revision: 1.1 $
+ * @author mailto:[EMAIL PROTECTED]";>Jason Dillon
+ * @version $Revision: 1.2 $
**/
-public class JMSException extends Exception
+public class JMSException
+ extends Exception
{
- // CONSTRUCTORS -
+ /** The specified error code */
+ private String _errorCode; // = null;
+ /** A linked exception */
+ private Exception _linkedException;
+
/**
- * Construct a JMSException with reason and error code for exception
- */
+* Construct a JMSException with reason and error code for exception
+*/
public JMSException(String reason, String errorCode)
{
super(reason);
@@ -35,40 +44,35 @@
}
/**
- * Construct a JMSException with reason and with error code defaulting to null
- */
+* Construct a JMSException with reason and with error code defaulting
+* to null.
+*/
public JMSException(String reason)
{
- this(reason,null);
+ this(reason, null);
}
-
- // PUBLIC METHODS -
- /** Get the vendor specific error code */
+ /**
+* Get the vendor specific error code.
+*/
public String getErrorCode()
{
return _errorCode;
}
- /** Get the exception linked to this one.
- * ? who uses this ?
- */
+ /**
+* Get the exception linked to this one.
+*/
public Exception getLinkedException()
{
return _linkedException;
}
- /** set the linked exception */
- public void setLinkedException(Exception linkedException)
+ /**
+* Set the linked exception
+*/
+ public synchronized void setLinkedException(Exception ex)
{
- _linkedException = linkedException;
+ _linkedException = ex;
}
-
- // ATTRIBUTES -
-
- /** the specified error code */
- private String _errorCode = null;
-
- /** a linked exception */
- private Exception _linkedException;
}
___
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development