[JBoss-dev] CVS update: jboss-j2ee/src/main/javax/jms JMSException.java

2001-08-21 Thread Jason Dillon

  User: user57  
  Date: 01/08/21 16:51:22

  Modified:src/main/javax/jms JMSException.java
  Log:
   o needed to change field names too (removed leading _)
  
  Revision  ChangesPath
  1.3   +7 -7  jboss-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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JMSException.java 2001/08/21 23:47:10 1.2
  +++ JMSException.java 2001/08/21 23:51:22 1.3
  @@ -23,16 +23,16 @@
 *
 * @author Chris Kimpton ([EMAIL PROTECTED])
 * @author mailto:[EMAIL PROTECTED]";>Jason Dillon
  -  * @version $Revision: 1.2 $
  +  * @version $Revision: 1.3 $
**/
   public class JMSException
  extends Exception
   {
  /** The specified error code */
  -   private String _errorCode; // = null;
  +   private String errorCode; // = null;
   
  /** A linked exception */
  -   private Exception _linkedException;
  +   private Exception linkedException;
  
  /** 
   * Construct a JMSException with reason and error code for exception
  @@ -40,7 +40,7 @@
  public JMSException(String reason, String errorCode)
  {
 super(reason);
  -  _errorCode = errorCode;
  +  this.errorCode = errorCode;
  }
   
  /** 
  @@ -57,7 +57,7 @@
   */
  public String getErrorCode()
  {
  -  return _errorCode;
  +  return errorCode;
  }
   
  /**
  @@ -65,7 +65,7 @@
   */
  public Exception getLinkedException()
  {
  -  return _linkedException;
  +  return linkedException;
  }
   
  /**
  @@ -73,6 +73,6 @@
   */
  public synchronized void setLinkedException(Exception ex)
  {
  -  _linkedException = ex;
  +  linkedException = ex;
  }
   }
  
  
  

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



[JBoss-dev] CVS update: jboss-j2ee/src/main/javax/jms JMSException.java

2001-08-21 Thread Jason Dillon

  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