harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r471125 - /incubator/harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/transaction/xa/XAException.java
Date Sat, 04 Nov 2006 05:27:33 GMT
Author: ndbeyer
Date: Fri Nov  3 21:27:30 2006
New Revision: 471125

URL: http://svn.apache.org/viewvc?view=rev&rev=471125
Log:
Minor code cleanup

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/transaction/xa/XAException.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/transaction/xa/XAException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/transaction/xa/XAException.java?view=diff&rev=471125&r1=471124&r2=471125
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/transaction/xa/XAException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/transaction/xa/XAException.java
Fri Nov  3 21:27:30 2006
@@ -21,7 +21,7 @@
 
 /**
  * An XAException is an exception thrown by a Resource Manager to inform the
- * Transaction Manaqer of an error which has occurred in relation to a
+ * Transaction Manager of an error which has occurred in relation to a
  * transaction branch. In addition to the usual exception message, an
  * XAException carries an errorCode value which provides information about the
  * error, as defined by the series of integer values defined by the XAException
@@ -32,11 +32,6 @@
     private static final long serialVersionUID = -8249683284832867751L;
 
     /**
-     * The errorCode which details the error that has occurred
-     */
-    public int errorCode = 0;
-
-    /**
      * Code which contains the inclusive lower bound of the rollback error codes
      */
     public static final int XA_RBBASE = 100;
@@ -106,7 +101,7 @@
     public static final int XA_HEURCOM = 7;
 
     /**
-     * Code which means that the transaction branch has been neuristically
+     * Code which means that the transaction branch has been heuristically
      * rolled back
      */
     public static final int XA_HEURRB = 6;
@@ -152,7 +147,7 @@
     public static final int XAER_INVAL = -5;
 
     /**
-     * Code which means that the method was invoked in an impropoer context
+     * Code which means that the method was invoked in an improper context
      */
     public static final int XAER_PROTO = -6;
 
@@ -171,16 +166,21 @@
      * global transaction.
      */
     public static final int XAER_OUTSIDE = -9;
+    
+    /**
+     * The errorCode which details the error that has occurred
+     */
+    public int errorCode;
 
     /**
-     * Creates an XAException with no message or errorcode
+     * Creates an XAException with no message or error code
      */
     public XAException() {
         super();
     }
 
     /**
-     * Creates an XAException with a supplied message and no errorcode
+     * Creates an XAException with a supplied message and no error code
      * 
      * @param theMessage
      *            a String containing the exception message
@@ -190,13 +190,13 @@
     }
 
     /**
-     * Creates an XAException with a specified errorcode but no message
+     * Creates an XAException with a specified error code but no message
      * 
-     * @param errcode
+     * @param errorCode
      *            an integer containing one of the XAException errorCode values
      */
-    public XAException(int errcode) {
+    public XAException(int errorCode) {
         super();
-        errorCode = errcode;
+        this.errorCode = errorCode;
     }
 }



Mime
View raw message