[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] New error code needed for javahl binding.

From: Patrick Mayweg <mayweg_at_qint.de>
Date: 2004-05-30 16:16:14 CEST

Hi,
the javahl binding needs a new error code. The binding calls
java-callbacks. During these calls, java exceptions maybe thrown. The
binding can detect these exceptions. This not catching these exceptions.
What I want to do is the stop the subversion processing by returning an
svn_error_t to subversion. When this error is processed in the outer
javahl binding code, I do not have to throw a new exception, but keep
the existing exception pending. For that I need a new error.
Patrick

[[[
 * subversion/include/svn_error_codes.h
    added new error code for passing pending java exception thru subversion.
]]]

Index: subversion/include/svn_error_codes.h
===================================================================
--- subversion/include/svn_error_codes.h (revision 9908)
+++ subversion/include/svn_error_codes.h (working copy)
@@ -853,6 +853,11 @@
               SVN_ERR_MISC_CATEGORY_START + 19,
               "Incompatible library version")
 
+ /* this error is not user visible */
+ SVN_ERRDEF (SVN_ERR_JAVAHL_EXCEPTION_PASSTHRU,
+ SVN_ERR_MISC_CATEGORY_START + 20,
+ "Java exception will be passed thru")
+
   /* command-line client errors */
 
   SVN_ERRDEF (SVN_ERR_CL_ARG_PARSING_ERROR,

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun May 30 16:16:22 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.