Guess you gave up on me Jean :) This was something I was going to work
on this week. We should figure out how we want to collaborate. I do
have to admit I am majorly swamped with some other projects right now,
so if you have the time and inclination...
Anyway, let me know if you need assistance, this was something I had
committed to getting done.
Also, I am thinking this should be checked in somewhere (I was thinking
in the derbyBuild directory), compiled as part of the build, and run by
the release manager at appropriate points in time. Unless you have
thoughts about how to automate this. The problem is it is Java source
code generating DITA files, so it semantically crosses two independent
svn repositories...
David
Jean T. Anderson (JIRA) wrote:
[ http://issues.apache.org/jira/browse/DERBY-1566?page=all ]
Jean T. Anderson updated DERBY-1566:
------------------------------------
Attachment: ErrorMessageGenerator.java
rrefexcept71493.html
ErrorMessageGenerator.java is a copy of DERBY-296's app modified as follows:
1) Replaced the "-//IBM//DTD DITA Reference//EN" with ""-//OASIS//DTD DITA
Reference//EN"
2) Some tags needed a space . For example, the 'xml' in this tag:
<reference id="rrefexcept13113"xml:lang="en-us">
needed a space before the 'xml' so xml parsing would succeed:
<reference id="rrefexcept13113" xml:lang="en-us">
3) Needed some close tags for DITA processing to succeed.
Running it outputs two errors:
$ java ErrorMessageGenerator
Unable to determine code for SQL State 0A000
Unable to determine code for SQL State 39004
The DITA source that it generates needs one manual change. The message for 42Y04 has
'<' and '>' in the message.
Change this: <full java path>.<method name>
To this: <full java path>.<method name>
rrefexcept71493.html shows sample output.
Document SQLStates in 10.2
--------------------------
Key: DERBY-1566
URL: http://issues.apache.org/jira/browse/DERBY-1566
Project: Derby
Issue Type: Improvement
Components: Documentation
Affects Versions: 10.2.1.0
Reporter: Rick Hillegas
Assigned To: David Van Couvering
Fix For: 10.2.1.0
Attachments: ErrorMessageGenerator.java, rrefexcept71493.html
We need to update the Reference Guide to document the current list of
SQLStates. This list goes into
Reference Guide
Derby exception messages and SQL states
SQLState and error message reference
The tool mentioned in DERBY-296 may be useful.