My WebLink
|
Help
|
About
|
Sign Out
Home
Browse
Search
CRDSS_Task1_05-13_ErrorHandling
CWCB
>
Decision Support Systems
>
DayForward
>
CRDSS_Task1_05-13_ErrorHandling
Metadata
Thumbnails
Annotations
Entry Properties
Last modified
9/25/2011 10:18:53 AM
Creation date
5/30/2008 2:37:59 PM
Metadata
Fields
Template:
Decision Support Systems
Title
CRDSS Task 1.05-13 - Study of System Integration Issues Error Handling - Guidelines for CRDSS
Description
This memorandum discusses technical issues behind handling errors generated by CRDSS products.
Decision Support - Doc Type
Task Memorandum
Date
5/10/1994
DSS Category
DMI Utilities
DSS
Colorado River
Basin
Colorado Mainstem
Contract/PO #
C153658, C153727, C153752
Grant Type
Non-Reimbursable
Bill Number
SB92-87, HB93-1273, SB94-029, HB95-1155, SB96-153, HB97-008
Prepared By
Riverside Technology inc.
There are no annotations on this page.
Document management portal powered by Laserfiche WebLink 9 © 1998-2015
Laserfiche.
All rights reserved.
/
4
PDF
Print
Pages to print
Enter page numbers and/or page ranges separated by commas. For example, 1,3,5-12.
After downloading, print the document using a PDF reader (e.g. Adobe Reader).
Show annotations
View images
View plain text
Errors can only be detected at the interface between program modules. If a stand-alone program is to <br />be used (e.g., CRSM), it may not be possible to detect specific internal errors in a run, but only the <br />final result of a run (success? or failure?). Consequently, the user interface for such a program will <br />be less fool-proof than programs that have integrated error handling. Existing stand-alone programs <br />may have error-handling procedures in place that can be used to determine errors. For example, the <br />output from such a program could be scanned for error messages which could then be acted on. <br />Also, error messages that are printed to the screen as the program runs could be trapped and <br />interpreted. <br />RTi suggests implementing several general error/warning routines to be used in new code. RTi has <br />used this method successfully for other projects. Routines consist of equivalents to the following <br />(shown in C syntax): <br />#include "error.h" <br />SetWarningFILE ( FILE *warnFILE ) <br />SetWarningLevel ( int warnlevel ) <br />PrintWarning ( int warnlevel, char *routine, char *message ) <br />The first routine sets the pointer to an open file to be used for warning messages (if not called, the <br />default is "stderr"). The second routine sets the warning level for the program (if not called, the <br />default is one, for basic warning messages) by setting a global variable initialized in the " " <br />error.h <br />include file. The third routine is called to print a warning message. The first argument is the <br />warning level for the message (it must be less than or equal to the global warning level for the <br />message to be printed; the second argument is the routine where the message is being printed); the <br />third argument is the message to be printed. Programs developed by RTi generally allow a warning <br />command line argument such as "-warn #" so that the warning level can be set at runtime by <br />developers and users. Error messages are implemented similarly except that no error level is set <br />(these messages are assumed to be fatal). Note that although these routines use global variables, the <br />scope of the variables is confined to the three simple routines and is never directly accessed by other <br />routines. Note also that this type of warning may only be implemented in new code because changes <br />to existing code may require extensive coding. The warning messages could be printed to the screen <br />or could be displayed in an area of a GUI devoted to warning messages. This issue will be studied <br />further in Phase II. <br />Building a complex error-handling procedure for the CRDSS could be an intensive effort, especially <br />if many specific error codes are to be developed and trapped. RTi proposes the early implementation <br />of a mechanism for handling errors, including general error trapping and display features. RTi also <br />proposes limiting error codes to a few common values until more values are needed. This will allow <br />efforts to concentrate on identifying code segments where errors can be detected (including calls to <br />pre-existing code) and trapping those errors. More detailed error handling can be implemented later <br />as more GUI features are implemented. <br />3 <br />A275 05.10.94 1.05-13 Malers <br />
The URL can be used to link to this page
Your browser does not support the video tag.