The include file errors.h

This file contains a set of manifest constant definitions for external file errors. These may be generated in either of two ways:

1

By commands relating to external sequential files, such as open #, get # and put #. The Sculptor system variable sys.Error is used to return any error trapped by the err = or traps = clause attached to such a command. The errors which may be generated by a command are listed under the documentation for that command.

2

As a return value from the functions remove() and chdir().

The error is returned as a number. These are the manifest constant definitions of these numbers, together with their meanings:

Sequential file I/O errors

BAD_CHANNEL

1

(valid range is 1-64)

IN_USE

2

In use (file is already open)

BAD_NAME

3

Bad file name (not a string)

NO_FILE

4

File cannot be accessed

NO_ZERO

5

Attempt to open channel 0

NO_PERMS

6

No permission

TOO_MANY

7

Too many files open

FEOF

8

Read past the end of file

FGETERR

9

Read error on input

FPUTERR

10

File not open for writing, or device full

FILE_EXISTS

11

File exists

New in version 6.3.0: See the new features.

TIMEOUT_EXCEEDED

12

Exceeded the timeout specified

CHECK_ERRNO

13

General error, check sys.Errno

BAD_ARGS

14

Bad or wrong argument to command


Function return values

NOFILE

1

File or directory does not exist

NOPERMS

2

Access permission denied


RELATED TOPICS

Standard include files