lucene-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roo...@apache.org
Subject svn commit: r178882 - in /incubator/lucene4c/branches/gcj-backend: include/lcn_error.h src/util/exception.cxx
Date Sat, 28 May 2005 19:35:45 GMT
Author: rooneg
Date: Sat May 28 12:35:43 2005
New Revision: 178882

URL: http://svn.apache.org/viewcvs?rev=178882&view=rev
Log:
Prefix exception type constants with LCN_ERR, not just LCN.

* include/lcn_error.h
  (LCN_IO_EXCEPTION): rename to...
  (LCN_ERR_IO_EXCEPTION): this.
  (LCN_ILLEGAL_ARGUMENT_EXCEPTION): rename to...
  (LCN_ERR_ILLEGAL_ARGUMENT_EXCEPTION): this.
  (LCN_RUNTIME_EXCEPTION): rename to...
  (LCN_ERR_RUNTIME_EXCEPTION): this.

* src/util/exception.cxx
  (lcn__swallow_exception): use new constants.

Modified:
    incubator/lucene4c/branches/gcj-backend/include/lcn_error.h
    incubator/lucene4c/branches/gcj-backend/src/util/exception.cxx

Modified: incubator/lucene4c/branches/gcj-backend/include/lcn_error.h
URL: http://svn.apache.org/viewcvs/incubator/lucene4c/branches/gcj-backend/include/lcn_error.h?rev=178882&r1=178881&r2=178882&view=diff
==============================================================================
--- incubator/lucene4c/branches/gcj-backend/include/lcn_error.h (original)
+++ incubator/lucene4c/branches/gcj-backend/include/lcn_error.h Sat May 28 12:35:43 2005
@@ -25,9 +25,9 @@
 
 /** Error codes for various types of exceptions. */
 typedef enum {
-  LCN_RUNTIME_EXCEPTION,
-  LCN_IO_EXCEPTION,
-  LCN_ILLEGAL_ARGUMENT_EXCEPTION
+  LCN_ERR_RUNTIME_EXCEPTION,
+  LCN_ERR_IO_EXCEPTION,
+  LCN_ERR_ILLEGAL_ARGUMENT_EXCEPTION
 } lcn_error_code_t;
 
 /** The best kind of @c lcn_error_t. */

Modified: incubator/lucene4c/branches/gcj-backend/src/util/exception.cxx
URL: http://svn.apache.org/viewcvs/incubator/lucene4c/branches/gcj-backend/src/util/exception.cxx?rev=178882&r1=178881&r2=178882&view=diff
==============================================================================
--- incubator/lucene4c/branches/gcj-backend/src/util/exception.cxx (original)
+++ incubator/lucene4c/branches/gcj-backend/src/util/exception.cxx Sat May 28 12:35:43 2005
@@ -58,11 +58,11 @@
   try {
     func (baton);
   } catch (IOException *e) {
-    return error_create (LCN_IO_EXCEPTION, e->getMessage());
+    return error_create (LCN_ERR_IO_EXCEPTION, e->getMessage());
   } catch (IllegalArgumentException *e) {
-    return error_create (LCN_ILLEGAL_ARGUMENT_EXCEPTION, e->getMessage());
+    return error_create (LCN_ERR_ILLEGAL_ARGUMENT_EXCEPTION, e->getMessage());
   } catch (RuntimeException *e) {
-    return error_create (LCN_RUNTIME_EXCEPTION, e->getMessage());
+    return error_create (LCN_ERR_RUNTIME_EXCEPTION, e->getMessage());
   }
 
   return LCN_NO_ERROR;



Mime
View raw message