Contact us Heritage collections Image license terms
HOME ACL Associates Technology Literature Applications Society Software revisited
Further reading □ OverviewNo.1No.2No.3No.4No.5No.8No.9No.11No.12No.13No.14No.15No.17No.19No.21No.22No.23No.24No.25No.26No.27No.28No.29No.30No.31No.32No.33No.37No.38No.39No.40No.41No.43No.44No.45No.46No.47No.48No.49No.50No.51No.52
ACD C&A INF CCD CISD Archives Contact us Heritage archives Image license terms

Search

   
ACLLiteratureProgress ReportsSPROGS Papers
ACLLiteratureProgress ReportsSPROGS Papers
ACL ACD C&A INF CCD CISD Archives
Further reading

Overview
No.1
No.2
No.3
No.4
No.5
No.8
No.9
No.11
No.12
No.13
No.14
No.15
No.17
No.19
No.21
No.22
No.23
No.24
No.25
No.26
No.27
No.28
No.29
No.30
No.31
No.32
No.33
No.37
No.38
No.39
No.40
No.41
No.43
No.44
No.45
No.46
No.47
No.48
No.49
No.50
No.51
No.52

SPROGS Paper No 30: The Treatment of Errors in SPROGS

R E Thomas

February 11 1973

1. INTRODUCTION

Errors occurring in high level routines such as histogram drawing, shading etc, are serviced by the two routines XERROR and ZERROR. Errors occurring in the basic SPROGS system are dealt with by the routine ERROR. Both systems allow the printing of arguments pertaining to the error.

2. ARGUMENT PRINTING

The COMMON block

       COMMON/SPRG4/ERR(6,2) 

is used to pass arguments to the error routines for printing. ERR(1,1) is a count of the number of arguments, and is reset to 0 after each error routine call. ERR(1,2) is currently unused. Arguments are passed across in ERR(*,1), and the corresponding ERR (*,2) contains a marker indicating the type of argument. Current type settings are

   0 real number 
   1 packed text 

The type marks are reset to 0 after each error call.

3. HIGH LEVEL ERRORS

The routine

      XERROR(N) 

prints the error number, message (if any) and arguments, and will then RETURN. It is called for recoverable errors.

The routine

      ZERROR(N) 

acts as XERROR, except routine FINIS is called. This routine will tidy any output devices and then STOP EE, but the routine may be replaced by a user to trap his own catastrophic errors.

4. BASIC SPROGS ERRORS

The routine

      ERROR (N) 

prints the error number, message (if any) and arguments. If N is negative, it will RETURN. Otherwise it will STOP EE after closing output streams. Fatal errors in basic SPROGS may not be trapped by a user.

⇑ Top of page
© Chilton Computing and UKRI Science and Technology Facilities Council webmaster@chilton-computing.org.uk
Our thanks to UKRI Science and Technology Facilities Council for hosting this site