Server Guide

Testing for error conditions

If an error occurs during the operation of any OS/390 Native request, a SrvFileError object is answered back to your program. For example, to test if an open request has succeeded, you could code it as the following:

| file |
(file := SrvBasicFileDescriptor open: 'FILEEX' mode: 'READ') isSrvFileError
   ifTrue: [Transcript cr; show: 'Open error code: ', file rc printString].

See OS/390 Native error codes for a description of the error codes associated with OS/390 Native.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]