RE: Listing error messages when documenting APIs

Subject: RE: Listing error messages when documenting APIs
From: John Posada <JPosada -at- book -dot- com>
To: 'France Baril' <France -dot- Baril -at- ixiasoft -dot- com>, TECHWR-L <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Mon, 11 Aug 2003 15:21:36 -0400

> I'm curious as to what the most common practice is when time
> comes to list error messages that can be returned by a method.
>
> Do you guys list error messages for each method, even if they
> are repetitive, or do you have a section with all possible
> messages and ways to solve problems?

I document errors for something similar. We have components that produce
alerts. An alert may resemble the following:

"Message text: 'User defined:Stored Procedure execution failed, system
will try again. Error executing: exec p_egtVolatileData DB error:
ODBC-40001-1205-Microsoft-ODBC SQL Server Driver-SQL Server-Your transaction
(process ID #24) was deadlocked with another process and has been chosen as
the deadlock victim. Rerun your transaction.
DART-62-DGDB_X_conn_sql_select-volatiledata-unable to execute SQL statement
// 40511 // ....."

I have a form that includes various fields, then the message, then sections
for explanation, reason, fix, and prevention. I also include, in the error
form, all other components that can generate the same type of alert.

I create the form, then save it as two versions; one, under each component
that can cause this (ewVOLATILEDATA_FROM_WEB), and one, where I use some or
all of the text immediately after User Defined (Stored Procedure execution
failed, system will try again. Error executing: exec p_egtVolatileData DB
error:...)

In this way, they can locate all alerts for a particular component, or all
components that can generate the same type of alert.

I deliver by PDF. They can look down the bookmark list for all alerts that
the component can issue, or for the specific alert and determine which
component caused it.

it works around here.


John Posada, Senior Technical Writer
Barnes&Noble.com
Moderator: Yahoo "Techwriter" group
http://groups.yahoo.com/group/techwriter/
"If you're afraid to be second-guessed, you better not make any decisions."
--Hal Sutton, America's 2004 Ryder Cup Captain





Previous by Author: RE: Interesting article
Next by Author: RE: Tech writing makes the front page
Previous by Thread: Re: Listing error messages when documenting APIs
Next by Thread: Tech writing makes the front page


What this post helpful? Share it with friends and colleagues:


Sponsored Ads