Re: [jr3] Exception Handling

2010-03-01 Thread Michael Dürig
== Use Error Codes == What about using something like a hash code (for example of the current stack trace) as error code? These would then automatically serve as hash tags for Google searches. That is, errors pasted into a discussion forum would be indexed by Google. Searching for 'Error

Re: [jr3] Exception Handling

2010-03-01 Thread Dominique Pfister
I wouldn't call it error code, then: every time something changes either in the calling code or in the code throwing the exception, you'll get a different hash code. Dominique On Mon, Mar 1, 2010 at 10:32 AM, Michael Dürig michael.due...@day.com wrote: == Use Error Codes == What about using

Re: [jr3] Exception Handling

2010-03-01 Thread Guo Du
On Mon, Mar 1, 2010 at 9:32 AM, Michael Dürig michael.due...@day.com wrote: What about using something like a hash code (for example of the current stack trace) as error code? These would then automatically serve as hash A good sample to deal with error messages:

Re: [jr3] Exception Handling

2010-03-01 Thread Michael Dürig
Dominique Pfister wrote: I wouldn't call it error code, then: every time something changes either in the calling code or in the code throwing the exception, you'll get a different hash code. Agreed, the stack trace might be too unstable. But I still like the idea of using something cryptic

Re: [jr3] Exception Handling

2010-03-01 Thread Alexander Klimetschek
On Sun, Feb 28, 2010 at 16:41, Thomas Müller thomas.muel...@day.com wrote: == Use Error Codes == Currently exception message are hardcoded (in English). When using error codes, exception messages could be translated. I'm not saying we should translate them ourselves, but if somebody wants to,

[jr3] Exception Handling

2010-02-28 Thread Thomas Müller
For Jackrabbit 3, I would like to improve exception handling. Some ideas: == Use Error Codes == Currently exception message are hardcoded (in English). When using error codes, exception messages could be translated. I'm not saying we should translate them ourselves, but if somebody wants to, he