commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1091829 - in /commons/sandbox/runtime/trunk/src/main: java/org/apache/commons/runtime/exception/ native/include/acr/ native/shared/
Date Wed, 13 Apr 2011 15:44:08 GMT
Author: mturk
Date: Wed Apr 13 15:44:08 2011
New Revision: 1091829

URL: http://svn.apache.org/viewvc?rev=1091829&view=rev
Log:
Rename EACCES exception

Added:
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/exception/AlreadyExistsException.java
      - copied, changed from r1091827, commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/exception/ObjectAlreadyExistsException.java
Removed:
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/exception/ObjectAlreadyExistsException.java
Modified:
    commons/sandbox/runtime/trunk/src/main/native/include/acr/error.h
    commons/sandbox/runtime/trunk/src/main/native/shared/error.c

Copied: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/exception/AlreadyExistsException.java
(from r1091827, commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/exception/ObjectAlreadyExistsException.java)
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/exception/AlreadyExistsException.java?p2=commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/exception/AlreadyExistsException.java&p1=commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/exception/ObjectAlreadyExistsException.java&r1=1091827&r2=1091829&rev=1091829&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/exception/ObjectAlreadyExistsException.java
(original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/exception/AlreadyExistsException.java
Wed Apr 13 15:44:08 2011
@@ -17,22 +17,22 @@
 package org.apache.commons.runtime.exception;
 
 /**
- * ObjectAlreadyExistsException thrown when an attempt is made to
+ * AlreadyExistsException thrown when an attempt is made to
  * invoke an operation on already existing operating system {@code object}.
  * This class mimics the os {@code EEXIST} error.
  *
  * @since Runtime 1.0
  */
 
-public class ObjectAlreadyExistsException extends RuntimeException
+public class AlreadyExistsException extends RuntimeException
 {
 
-    public ObjectAlreadyExistsException()
+    public AlreadyExistsException()
     {
         super();
     }
 
-    public ObjectAlreadyExistsException(String msg)
+    public AlreadyExistsException(String msg)
     {
         super(msg);
     }

Modified: commons/sandbox/runtime/trunk/src/main/native/include/acr/error.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/acr/error.h?rev=1091829&r1=1091828&r2=1091829&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/acr/error.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/acr/error.h Wed Apr 13 15:44:08
2011
@@ -56,8 +56,8 @@ enum {
     ACR_EX_ENOTFOUND,       /* java/io/FileNotFoundException */
     ACR_EX_ESYNC,           /* java/io/SyncFailedException */
     ACR_EX_ESOCK,           /* java/net/SocketException */
+    ACR_EX_EEXIST,          /* exception/AlreadyExistsException */
     ACR_EX_ENOENT,          /* exception/NoSuchObjectException */
-    ACR_EX_EEXIST,          /* exception/ObjectAlreadyExistsException */
     ACR_EX_OSERR,           /* exception/OperatingSystemException */
     ACR_EX_ETIMEOUT,        /* exception/TimeoutException */
     ACR_EX_UNSUPPORTED,     /* exception/UnsupportedOperatingSystemException */

Modified: commons/sandbox/runtime/trunk/src/main/native/shared/error.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/error.c?rev=1091829&r1=1091828&r2=1091829&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/error.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/error.c Wed Apr 13 15:44:08 2011
@@ -50,8 +50,8 @@ static struct {
     { 0, "java/io/FileNotFoundException"                        },
     { 0, "java/io/SyncFailedException"                          },
     { 0, "java/net/SocketException"                             },
+    { 0, ACR_EXCEPTION_CP "AlreadyExistsException"              },    
     { 0, ACR_EXCEPTION_CP "NoSuchObjectException"               },
-    { 0, ACR_EXCEPTION_CP "ObjectAlreadyExistsException"        },    
     { 0, ACR_EXCEPTION_CP "OperatingSystemException"            },
     { 0, ACR_EXCEPTION_CP "TimeoutException"                    },
     { 0, ACR_EXCEPTION_CP "UnsupportedOperatingSystemException" },



Mime
View raw message