next up previous
Next: Basic Routines
Up: PAR Interface to the ADAM Parameter System
Previous: Parameter States

Error Handling  

  Like other Starlink subroutine libraries, PAR adheres throughout to the error-handling strategy described in SUN/104. Subroutines have an integer final argument called STATUS that is an inherited status, and will return without action unless the status is set to the value SAI__OK when they are invoked. (SAI__OK is a symbolic constant defined in the include file SAE_PAR.) This strategy greatly simplifies the coding since you can make a series of subroutine calls without having to check STATUS after each call; if an error occurs the subsequent routines do nothing. [*] Where necessary, PAR makes error reports through the ERR_ routines in the manner described in SUN/104, and therefore sets STATUS to a value other than SAI__OK.



next up previous
Next: Basic Routines
Up: PAR Interface to the ADAM Parameter System
Previous: Parameter States

PAR Interface to the ADAM Parameter System
Starlink User Note 114
Malcolm J. Currie
Alan J. Chipperfield
1999 September 24
E-mail:ussc@star.rl.ac.uk